about summary refs log tree commit diff
path: root/users/sterni/emacs/init.el
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2023-07-02T22·24+0200
committersterni <sternenseemann@systemli.org>2023-07-05T12·37+0000
commitb4bba0c2216fe834fe91850d8f8929647a31c485 (patch)
tree1c2ee27d2d6284df92830be1affd0e538b0d5ce0 /users/sterni/emacs/init.el
parenta72e67c8affff575c4c55ac56596b04c3704152f (diff)
feat(users/sterni/emacs): set up deft r/6393
Change-Id: I52f97d5f018196b273a1cc08247b5a48a757adbd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8927
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/emacs/init.el')
-rw-r--r--users/sterni/emacs/init.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index c38daa109ce5..eaca20a02d63 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -337,6 +337,16 @@
   (set-face-background 'languagetool-issue-default "yellow")
   (set-face-background 'languagetool-issue-misspelling "red"))
 
+(use-package deft
+  :config
+  ;; This is based on (car deft-extensions), but unfortunately the variable is
+  ;; not re-bound in the hook defined by defcustom, so it is always "txt".
+  (setq deft-default-extension "org")
+  (evil-define-key 'normal 'global (kbd "<leader>mn") 'deft)
+  :custom
+  deft-directory (expand-file-name "~/files/sync/org/notes")
+  deft-extensions '("org" "md" "txt" "tex"))
+
 (unless (server-running-p)
   (server-start))