feat(users/sterni/emacs): set up deft
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
This commit is contained in:
parent
a72e67c8af
commit
b4bba0c221
2 changed files with 11 additions and 0 deletions
|
@ -23,6 +23,7 @@ let
|
|||
epkgs.elpaPackages.which-key
|
||||
epkgs.melpaPackages.adoc-mode
|
||||
epkgs.melpaPackages.cmake-mode
|
||||
epkgs.melpaPackages.deft
|
||||
epkgs.melpaPackages.direnv
|
||||
epkgs.melpaPackages.dockerfile-mode
|
||||
epkgs.melpaPackages.editorconfig
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue