Update to include MELPA and load HOWM correctly

This commit is contained in:
William Moore 2024-12-27 15:33:38 -06:00
parent 4951002e2d
commit 8315be6082
2 changed files with 20 additions and 18 deletions

View File

@ -8,11 +8,13 @@
;; Add the whomp.d directory to the load path
(add-to-list 'load-path (expand-file-name "whomp.d" user-emacs-directory))
;;
;; Package management dependencies
;;
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
;; And disable package at startup
(setq package-enable-at-startup nil)

View File

@ -11,23 +11,23 @@
(when (memq 'howm whomp-notes)
(use-package howm
:straight t
:defer t)
;; 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*
(message "HOWM loaded"))
: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*
(message "HOWM loaded")))
(message "W.H.O.M.P. Note Taking packages loaded")
(provide 'whomp-notes)