diff options
| author | Blake Romero <blake@blkrom.com> | 2025-08-10 20:43:41 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-08-10 20:43:41 +0100 |
| commit | 5c4300ecbbada54950404789e8ae2c3613a8c328 (patch) | |
| tree | 9df3f085e8ec2471c341fb7f97525a39d0a68f66 /emacs-config.org | |
| parent | c2d8062c181031e471de5c73259ff15219d0f3a0 (diff) | |
Reorder document layout
Diffstat (limited to 'emacs-config.org')
| -rw-r--r-- | emacs-config.org | 107 |
1 files changed, 53 insertions, 54 deletions
diff --git a/emacs-config.org b/emacs-config.org index de0335b..87a8cd9 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -1187,6 +1187,48 @@ Review captures. org-capture-templates) #+end_src +*** Org Encryption +Enable org-crypt module. +#+begin_src elisp + (with-eval-after-load 'org + (cl-pushnew 'org-crypt org-modules)) +#+end_src + +Use symmetrical keys for encryption/decryption. +#+begin_src elisp + (with-eval-after-load 'org-crypt + (setq-default org-crypt-key nil)) +#+end_src + +Redirect pinentry queries to Emacs to query passphrases through the minibuffer. +#+begin_src elisp + (with-eval-after-load 'epg-config + (setq-default epg-pinentry-mode 'loopback)) +#+end_src + +Encrypt file on save. +#+begin_src elisp + (with-eval-after-load 'org-crypt + (setq-default org-crypt-disable-auto-save 'encrypt) + (org-crypt-use-before-save-magic)) +#+end_src + +*** Org Refile +Display filename on refile target and enable instant completion. +#+begin_src elisp + (with-eval-after-load 'org-refile + (setq-default + org-refile-use-outline-path 'file + org-outline-path-complete-in-steps nil)) +#+end_src + +Increase refile depth for current buffer and agenda files. +#+begin_src elisp + (with-eval-after-load 'org-refile + (cl-pushnew '(nil :maxlevel . 9) org-refile-targets) + (cl-pushnew '(org-agenda-files :maxlevel . 9) org-refile-targets)) +#+end_src + ** Error Checking Enable flymake for programming modes. #+begin_src elisp @@ -1260,7 +1302,7 @@ Set the prompt for eshell. <<eshell-prompt>>) #+end_src -**** Eshell Prompt +*** Eshell Prompt :PROPERTIES: :header-args:elisp: :tangle no :noweb-ref eshell-prompt :results none :ID: 531f8b73-c91a-449d-a13b-2bddc8fe13c7 @@ -1327,13 +1369,21 @@ Prompt settings. eshell-prompt-function #'+eshell-prompt-function) #+end_src -* Keybindings +** Diff-mode +Rebind diff-mode's ~diff-goto-source~ keybinding (due to conflict with =M-o=). +Add version control next action shortcut in diff-mode buffer. +#+begin_src elisp + (with-eval-after-load 'diff-mode + (keymap-set diff-mode-map "M-j" #'diff-goto-source) + (keymap-set diff-mode-map "v" #'vc-next-action)) +#+end_src + +* Global Keybindings Unlock previously unusable keybinding. #+begin_src elisp (define-key input-decode-map [?\C-\[] (kbd "<C-[>")) #+end_src -** Global Keybindings To prevent other packages overriding any custom global keybinding, all custom global keybinding are stored in a global minor mode. #+begin_src elisp (define-minor-mode +global-keys @@ -1438,57 +1488,6 @@ Toggle theme. (keymap-set +global-keys-map "C-c t" #'modus-themes-toggle) #+end_src -** Org Encryption -Enable org-crypt module. -#+begin_src elisp - (with-eval-after-load 'org - (cl-pushnew 'org-crypt org-modules)) -#+end_src - -Use symmetrical keys for encryption/decryption. -#+begin_src elisp - (with-eval-after-load 'org-crypt - (setq-default org-crypt-key nil)) -#+end_src - -Redirect pinentry queries to Emacs to query passphrases through the minibuffer. -#+begin_src elisp - (with-eval-after-load 'epg-config - (setq-default epg-pinentry-mode 'loopback)) -#+end_src - -Encrypt file on save. -#+begin_src elisp - (with-eval-after-load 'org-crypt - (setq-default org-crypt-disable-auto-save 'encrypt) - (org-crypt-use-before-save-magic)) -#+end_src - -** Org Refile -Display filename on refile target and enable instant completion. -#+begin_src elisp - (with-eval-after-load 'org-refile - (setq-default - org-refile-use-outline-path 'file - org-outline-path-complete-in-steps nil)) -#+end_src - -Increase refile depth for current buffer and agenda files. -#+begin_src elisp - (with-eval-after-load 'org-refile - (cl-pushnew '(nil :maxlevel . 9) org-refile-targets) - (cl-pushnew '(org-agenda-files :maxlevel . 9) org-refile-targets)) -#+end_src - -** Diff-mode -Rebind diff-mode's ~diff-goto-source~ keybinding (due to conflict with =M-o=). -Add version control next action shortcut in diff-mode buffer. -#+begin_src elisp - (with-eval-after-load 'diff-mode - (keymap-set diff-mode-map "M-j" #'diff-goto-source) - (keymap-set diff-mode-map "v" #'vc-next-action)) -#+end_src - * EXTENSIONS #+begin_src elisp (add-to-list 'load-path "~/shared/modally/") |
