From 07520a7c58666d84aea47f64b8ea51e410caf71b Mon Sep 17 00:00:00 2001
From: noa
Date: Tue, 17 Sep 2024 09:36:43 +0800
Subject: Add deft configuration

---
 emacs/init.el | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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
+           "\\)")))
-- 
cgit 1.4.1-2-gfad0