From 9c61da7b574cf4c5b72607cffeb633dc3f5c578e Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 16 Feb 2020 10:43:09 -0500 Subject: [PATCH] Set deft directory to the top-level org directory --- emacs/init.org | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index cd75121..adb9165 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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: