diff options
author | sterni <sternenseemann@systemli.org> | 2023-07-02T22·24+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2023-07-05T12·37+0000 |
commit | b4bba0c2216fe834fe91850d8f8929647a31c485 (patch) | |
tree | 1c2ee27d2d6284df92830be1affd0e538b0d5ce0 /users/sterni | |
parent | a72e67c8affff575c4c55ac56596b04c3704152f (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')
-rw-r--r-- | users/sterni/emacs/default.nix | 1 | ||||
-rw-r--r-- | users/sterni/emacs/init.el | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/users/sterni/emacs/default.nix b/users/sterni/emacs/default.nix index a66f9ca1529c..dfc1aab6a457 100644 --- a/users/sterni/emacs/default.nix +++ b/users/sterni/emacs/default.nix @@ -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 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)) |