diff options
-rw-r--r-- | init.el | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/init.el b/init.el index 46f0071..3ed63c2 100644 --- a/init.el +++ b/init.el | |||
@@ -119,7 +119,8 @@ | |||
119 | pulse-iterations 1) | 119 | pulse-iterations 1) |
120 | (dolist (command '(+ace-window-or-switch-buffer | 120 | (dolist (command '(+ace-window-or-switch-buffer |
121 | pop-mark pop-global-mark | 121 | pop-mark pop-global-mark |
122 | Info-history-back Info-history-forward)) | 122 | Info-history-back Info-history-forward |
123 | )) | ||
123 | (add-to-list '+pulse-location-commands command)) | 124 | (add-to-list '+pulse-location-commands command)) |
124 | (+ensure-after-init #'+pulse-location-mode)) | 125 | (+ensure-after-init #'+pulse-location-mode)) |
125 | 126 | ||
@@ -129,6 +130,8 @@ | |||
129 | 130 | ||
130 | (setup (:require user-save) | 131 | (setup (:require user-save) |
131 | (add-hook 'user-save-hook #'+clean-empty-lines) | 132 | (add-hook 'user-save-hook #'+clean-empty-lines) |
133 | (add-hook 'user-save-hook (defun user-save@save-some-buffers () | ||
134 | (save-some-buffers t t))) | ||
132 | (user-save-global-mode +1)) | 135 | (user-save-global-mode +1)) |
133 | 136 | ||
134 | (setup (:require winner) | 137 | (setup (:require winner) |
@@ -623,6 +626,17 @@ | |||
623 | ("=" org-verbatim) | 626 | ("=" org-verbatim) |
624 | ("~" org-code) | 627 | ("~" org-code) |
625 | ("+" org-strikethrough))) | 628 | ("+" org-strikethrough))) |
629 | ;; (setq org-todo-keywords | ||
630 | ;; '((sequence | ||
631 | ;; "TODO(t)" | ||
632 | ;; "NEXT(n!)" ; next action | ||
633 | ;; "DONE(d)" ; done) | ||
634 | ;; (sequence | ||
635 | ;; "WAIT(w@)" ; waiting to be actionable again | ||
636 | ;; "HOLD(h@/!)" ; actinable, but will do later | ||
637 | ;; "IDEA(i)" ; maybe someday | ||
638 | ;; "KILL(k@/!)" ; cancelled, aborted or is no longer applicable | ||
639 | ;; )))) | ||
626 | (:bind "RET" #'+org-return-dwim | 640 | (:bind "RET" #'+org-return-dwim |
627 | "<S-return>" #'+org-table-copy-down | 641 | "<S-return>" #'+org-table-copy-down |
628 | "C-c C-l" #'+org-insert-link-dwim | 642 | "C-c C-l" #'+org-insert-link-dwim |
@@ -774,7 +788,14 @@ | |||
774 | :unnarrowed t)) | 788 | :unnarrowed t)) |
775 | (+org-capture-sort)) | 789 | (+org-capture-sort)) |
776 | 790 | ||
777 | (setup org-export | 791 | (setup org-id |
792 | (:load-after org) | ||
793 | ;; https://helpdeskheadesk.net/2022-03-13/ | ||
794 | (:option org-id-method 'ts | ||
795 | org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format | ||
796 | org-attach-id-uuid-folder-format))) | ||
797 | |||
798 | (setup ox ; org-export | ||
778 | (:also-load ox-md) | 799 | (:also-load ox-md) |
779 | (:option org-export-coding-system 'utf-8-unix | 800 | (:option org-export-coding-system 'utf-8-unix |
780 | org-export-headline-levels 8 | 801 | org-export-headline-levels 8 |
@@ -784,14 +805,7 @@ | |||
784 | org-export-with-sub-superscripts t | 805 | org-export-with-sub-superscripts t |
785 | org-export-with-toc nil) | 806 | org-export-with-toc nil) |
786 | (with-eval-after-load 'user-save | 807 | (with-eval-after-load 'user-save |
787 | (advice-add 'org-export-dispatch :before 'user-save-run-hooks))) | 808 | (advice-add 'org-export-as :before #'user-save-run-hooks))) |
788 | |||
789 | (setup org-id | ||
790 | (:load-after org) | ||
791 | ;; https://helpdeskheadesk.net/2022-03-13/ | ||
792 | (:option org-id-method 'ts | ||
793 | org-attach-id-to-path-function-list '(org-attach-id-ts-folder-format | ||
794 | org-attach-id-uuid-folder-format))) | ||
795 | 809 | ||
796 | (setup password-cache | 810 | (setup password-cache |
797 | (:option password-cache t | 811 | (:option password-cache t |