diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index 5ce3dd0..7abbb29 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1413,3 +1413,20 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." ("<f12>" . howm-list-all) ("<C-f12>" . howm-create)) (setopt howm-file-name-format "%Y-%m-%dT%H%M%S.md") + + +;;; deft +(require 'deft) +(use-package deft + :ensure t + :custom + (deft-extensions '("md")) + (deft-directory "~/Documents/notes") + (deft-time-format nil) + (deft-separator " — ") + (deft-strip-summary-regexp + (concat "\\(" + "[\n\t]" ;; blank + "\\|^#\\+[[:upper:]_]+:.*$" ;; org-mode metadata + "\\|^#+.*$" ;; markdown titles + "\\)"))) |