Add startup notification
Add better pdftools and ready player toggle Add org-roam toggle based on directory location Add paradox modding support
This commit is contained in:
parent
5475803398
commit
b8e9d592aa
4 changed files with 139 additions and 100 deletions
4
init.el
4
init.el
|
|
@ -85,3 +85,7 @@
|
||||||
(load-directory (concat user-emacs-directory "workflows"))
|
(load-directory (concat user-emacs-directory "workflows"))
|
||||||
;; Custom screens
|
;; Custom screens
|
||||||
(load-directory (concat user-emacs-directory "screens"))
|
(load-directory (concat user-emacs-directory "screens"))
|
||||||
|
|
||||||
|
(unless (fboundp 'notifications-notify)
|
||||||
|
(require 'notifications))
|
||||||
|
(notifications-notify :title "Emacs Server Started" :app-name "Emacs")
|
||||||
|
|
|
||||||
|
|
@ -51,27 +51,27 @@
|
||||||
:config
|
:config
|
||||||
(add-hook 'dired-mode-hook 'all-the-icons-dired-mode))
|
(add-hook 'dired-mode-hook 'all-the-icons-dired-mode))
|
||||||
|
|
||||||
(defcustom theurgy-enable-pdf-tools-windows nil
|
(defcustom theurgy-enable-pdf-tools (equal system-type 'gnu/linux)
|
||||||
"Whether `pdf-tools' should be enabled on Windows sytems."
|
"Whether `pdf-tools' should be enabled on Windows sytems."
|
||||||
:type 'boolean
|
:type 'boolean
|
||||||
:group 'theurgy
|
:group 'theurgy
|
||||||
:group 'theurgy-compat)
|
:group 'theurgy-compat)
|
||||||
|
|
||||||
(defcustom theurgy-enable-ready-player-windows nil
|
(defcustom theurgy-enable-ready-player (equal system-type 'gnu/linux)
|
||||||
"Whether `ready-player' should be enabled on Windows sytems."
|
"Whether `ready-player' should be enabled on Windows sytems."
|
||||||
:type 'boolean
|
:type 'boolean
|
||||||
:group 'theurgy
|
:group 'theurgy
|
||||||
:group 'theurgy-compat)
|
:group 'theurgy-compat)
|
||||||
|
|
||||||
;; Multimedia and PDF viewing
|
;; Multimedia and PDF viewing
|
||||||
(when (or (equal system-type 'gnu/linux) theurgy-enable-ready-player-windows)
|
(when theurgy-enable-ready-player-windows
|
||||||
(use-package ready-player
|
(use-package ready-player
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq ready-player-autoplay nil)
|
(setq ready-player-autoplay nil)
|
||||||
(ready-player-mode 1)))
|
(ready-player-mode 1)))
|
||||||
|
|
||||||
(when (or (equal system-type 'gnu/linux) theurgy-enable-pdf-tools-windows)
|
(when theurgy-enable-pdf-tools-windows
|
||||||
(use-package pdf-tools
|
(use-package pdf-tools
|
||||||
:config (pdf-loader-install)))
|
:config (pdf-loader-install)))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -543,7 +543,8 @@
|
||||||
(window-width . 0.2))))
|
(window-width . 0.2))))
|
||||||
|
|
||||||
;; Org roam
|
;; Org roam
|
||||||
(use-package org-roam
|
(when (file-directory-p "~/.org/lore")
|
||||||
|
(use-package org-roam
|
||||||
:straight nil
|
:straight nil
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
|
|
@ -594,7 +595,7 @@
|
||||||
(require 'org-roam-dailies) ;; Ensure the keymap is available
|
(require 'org-roam-dailies) ;; Ensure the keymap is available
|
||||||
(org-roam-db-autosync-mode))
|
(org-roam-db-autosync-mode))
|
||||||
|
|
||||||
(defun org-roam-create-node-from-headline ()
|
(defun org-roam-create-node-from-headline ()
|
||||||
"Create an Org-roam note from the current headline and jump to it.
|
"Create an Org-roam note from the current headline and jump to it.
|
||||||
|
|
||||||
Normally, insert the headline’s title using the ’#title:’ file-level property
|
Normally, insert the headline’s title using the ’#title:’ file-level property
|
||||||
|
|
@ -617,12 +618,12 @@
|
||||||
(kill-line)
|
(kill-line)
|
||||||
(kill-line))))
|
(kill-line))))
|
||||||
|
|
||||||
(use-package logseq-org-roam
|
(use-package logseq-org-roam
|
||||||
:straight (:host github
|
:straight (:host github
|
||||||
:repo "sbougerel/logseq-org-roam"
|
:repo "sbougerel/logseq-org-roam"
|
||||||
:files ("*.el")))
|
:files ("*.el")))
|
||||||
|
|
||||||
(transient-define-prefix org-roam-menu ()
|
(transient-define-prefix org-roam-menu ()
|
||||||
"Transient menu for task management shortcuts."
|
"Transient menu for task management shortcuts."
|
||||||
["Node" ("c" "Capture" org-roam-node-find)
|
["Node" ("c" "Capture" org-roam-node-find)
|
||||||
("i" "Insert" org-roam-node-insert)
|
("i" "Insert" org-roam-node-insert)
|
||||||
|
|
@ -634,9 +635,9 @@
|
||||||
["Logseq" ("R" "Fix links" logseq-org-roam)]
|
["Logseq" ("R" "Fix links" logseq-org-roam)]
|
||||||
["Org Roam UI" ("U" "Enable org-roam-ui-mode" org-roam-ui-mode)])
|
["Org Roam UI" ("U" "Enable org-roam-ui-mode" org-roam-ui-mode)])
|
||||||
|
|
||||||
(define-key global-map (kbd "C-c o n") #'org-roam-menu)
|
(define-key global-map (kbd "C-c o n") #'org-roam-menu)
|
||||||
|
|
||||||
(use-package org-roam-ui
|
(use-package org-roam-ui
|
||||||
:straight
|
:straight
|
||||||
(:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
|
(:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
|
||||||
:after org-roam
|
:after org-roam
|
||||||
|
|
@ -648,7 +649,7 @@
|
||||||
(setq org-roam-ui-sync-theme t
|
(setq org-roam-ui-sync-theme t
|
||||||
org-roam-ui-follow t
|
org-roam-ui-follow t
|
||||||
org-roam-ui-update-on-save t
|
org-roam-ui-update-on-save t
|
||||||
org-roam-ui-open-on-start nil))
|
org-roam-ui-open-on-start nil)))
|
||||||
|
|
||||||
;; Bibliography stuff
|
;; Bibliography stuff
|
||||||
(setq bibtex-dialect 'biblatex) ;; Use biblatex instead of bibtex.
|
(setq bibtex-dialect 'biblatex) ;; Use biblatex instead of bibtex.
|
||||||
|
|
|
||||||
34
workflows/paradox-modding.el
Normal file
34
workflows/paradox-modding.el
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
;;; paradox-modding.el --- Tools for paradox game modding. -*- lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; This file is not part of GNU Emacs
|
||||||
|
|
||||||
|
;; This program is free software: you can redistribute it and/or modify
|
||||||
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
;; the Free Software Foundation, either version 3 of the License, or
|
||||||
|
;; (at your option) any later version.
|
||||||
|
|
||||||
|
;; This program is distributed in the hope that it will be useful,
|
||||||
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
;; GNU General Public License for more details.
|
||||||
|
|
||||||
|
;; You should have received a copy of the GNU General Public License
|
||||||
|
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
;;; Commentary:
|
||||||
|
|
||||||
|
;; commentary
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
|
|
||||||
|
(use-package jomini-mode
|
||||||
|
:straight (jomini-mode
|
||||||
|
:type git
|
||||||
|
:host nil
|
||||||
|
:repo "https://git.cyan.sh/BirDt/jomini.el.git"
|
||||||
|
:files ("*.el")))
|
||||||
|
|
||||||
|
(provide 'paradox-modding)
|
||||||
|
|
||||||
|
;;; paradox-modding.el ends here
|
||||||
Loading…
Add table
Add a link
Reference in a new issue