emacs/lisp/icejam-deft.el
Maciej Szlosarczyk 97c02a2995
All checks were successful
/ Test config on 20 (push) Successful in 27s
It has been so long, only zenburn works for me
2024-08-18 09:40:51 +03:00

30 lines
1 KiB
EmacsLisp

;;; icejam-deft.el -- summary -*- lexical-binding: t; -*-
;;; Commentary:
;;; Notational velocity, backed by OneDrive.
;;; Code:
(require 'icejam-keys-mode)
(require 'icejam-transient)
(use-package deft
:straight t
:defer t
:config (setq
deft-directory (substitute-in-file-name "$DEFT_PATH")
deft-default-extension "md"
;; NB! deft returns absolute paths as filenames, so
;; ignore works slightly differently.
deft-ignore-file-regexp "\\._[0-9-A-Z_]+\\.md$"
deft-strip-summary-regexp (concat "\\("
"[\n\t]" ;; blank
"\\|^:[[:ascii:]]+:.*$" ;; org-mode properties string
"\\|^Title:.*$" ;; Title string
"\\|^title:.*$" ;; title string
"\\|^\\[\\[file:.*$" ;; org-mode inline-images
;; org-mode properties
;; "\\|:PROPERTIES:\n\\(.+\n\\)+:END:\n" ;;
"\\)")
deft-auto-save-interval 30.0))
(provide 'icejam-deft)
;;; icejam-deft.el ends here