From 12c06e17d1012afda4813fef7486b1d8c2e2ab0f Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 1 Sep 2022 03:04:50 +0100 Subject: a config for deft that makes it work with my jao-org-notes --- init.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 9a6cff2..ec9e598 100644 --- a/init.el +++ b/init.el @@ -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 (("" . deft) + ("C-x C-g" . deft-find-file))) ;;;; doc-view (use-package doc-view :init -- cgit v1.2.3