Set deft directory to the top-level org directory

This commit is contained in:
Jeremy Dormitzer 2020-02-16 10:43:09 -05:00
parent 7fb7379c12
commit 9c61da7b57

View File

@ -5027,15 +5027,18 @@ Emacs frontend for networkmanager.
* Deft
A fuzzy-finder for notes.
#+BEGIN_SRC emacs-lisp
(setq deft-directory
(concat (file-name-as-directory (get-dropbox-directory))
"org/deft"))
(add-to-list 'org-agenda-files deft-directory)
(use-package deft
:commands (deft)
:init
(setq deft-extensions '("org" "txt" "md" "markdown" "text"))
(setq deft-extensions '("org" "txt" "md" "markdown" "text")
deft-recursive t
deft-directory (concat
(file-name-as-directory (get-dropbox-directory))
"org"))
;; Still lots of notes in the old Deft directory
(add-to-list 'org-agenda-files
(concat (file-name-as-directory (get-dropbox-directory))
"/org/deft"))
(leader-def-key "D" #'deft)
(leader-def-key "od" #'deft)
:config
@ -5045,7 +5048,6 @@ A fuzzy-finder for notes.
(case-fn . downcase))
deft-auto-save-interval 0)
(add-to-list 'evil-emacs-state-modes 'deft-mode))
#+END_SRC
Tell Deft to use the TITLE property for entry titles, if it exists: