36 lines
1.1 KiB
EmacsLisp
36 lines
1.1 KiB
EmacsLisp
;;
|
|
;; Note Taking Packages
|
|
;; These are the packages related to note taking
|
|
;;
|
|
|
|
(defcustom whomp-notes nil
|
|
"Whether or not to enable note taking packages."
|
|
:type '(set (const :tag "HOWM" howm) ;; HOWM
|
|
)
|
|
:group 'whomp-config)
|
|
|
|
(when (memq 'howm whomp-notes)
|
|
(use-package howm
|
|
:ensure t
|
|
:init
|
|
;; Directory configuration
|
|
(whomp/ensure-directory-exists "~/org")
|
|
(setq howm-home-directory "~/org/")
|
|
(setq howm-directory "~/org/")
|
|
(setq howm-keyword-file (expand-file-name ".howm-keys" howm-home-directory))
|
|
(setq howm-history-file (expand-file-name ".howm-history" howm-home-directory))
|
|
(setq howm-file-name-format "%Y/%m/%Y%m%d%H%M%S.org")
|
|
|
|
;; Search optimisation
|
|
(setq howm-view-use-grep t) ;; use external grep
|
|
(setq howm-menu-refresh-after-save nil)
|
|
(setq howm-menu-expiry-hours 2) ;; cache menu N hours
|
|
(setq howm-menu-file "00000000000000.txt") ;; don't *search*
|
|
(whomp/add-key-binding "h g" 'howm-list-grep "Search notes.")
|
|
|
|
(message "HOWM loaded")))
|
|
|
|
(message "W.H.O.M.P. Note Taking packages loaded")
|
|
(provide 'whomp-notes)
|
|
;; whomp-notes.el ends here
|