diff options
-rw-r--r-- | init.el | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1777,6 +1777,29 @@ (shell-command (format "r2e run %s" name))))))) ;;; PDFs and other docs +;;;; deft +(use-package deft + :ensure t + :after jao-org-notes + :commands deft + :init (setq deft-extensions '("org" "md") + deft-directory jao-org-notes-dir + deft-use-filename-as-title nil + deft-use-filter-string-for-name t + deft-file-naming-rules '((noslash . "-") + (nospace . "-") + (case-fn . downcase)) + deft-org-mode-title-prefix t + deft-recursive t + deft-recursive-ignore-dir-regexp (regexp-opt '("." ".." "attic")) + deft-strip-summary-regexp + (concat "\\([\n\t]" + "\\|^#\\+\\(title\\|created\\|date\\|author\\):.*$" + "\\|^#\\+\\(file\\)?tags: *\\)")) + :config (setq deft-strip-title-regexp + (concat "\\(^#\\+title: *\\)" deft-strip-title-regexp)) + :bind (("<f9>" . deft) + ("C-x C-g" . deft-find-file))) ;;;; doc-view (use-package doc-view :init |