diff options
Diffstat (limited to 'users/sterni/emacs/init.el')
-rw-r--r-- | users/sterni/emacs/init.el | 10 |
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)) |