(use-package howm
:config
- (setq action-lock-default-rules
- (append action-lock-default-rules
- (list '("\\[Mtg\\]" (lambda (&optional dummy) (howm-create 2)))
- '("\\[Person\\]" (lambda (&optional dummy) (howm-create 3))))))
(require 're-howm-defuns)
(setq howm-template-list '("= %title%cursor #inbox\n%date %file\n\n"
"= %title%cursor #meeting\n%date %file\n\nAttendees: \n"
howm-menu-file "~/.emacs.d/re/0000-00-00-000000.txt"
howm-keyword-case-fold-search t
howm-remember-insertion-format "%s"
- howm-menu-todo-num 20
+ howm-menu-todo-num 10
howm-menu-allow (append '(re/howm-menu-legend) howm-menu-allow))
- (add-hook 'after-save-hook 'howm-mode-set-buffer-name)
- (add-hook 'howm-mode-hook 'howm-mode-set-buffer-name)
+ ;; add coloring for custom "waiting" state
+ (add-to-list 'howm-reminder-font-lock-keywords
+ `(,(howm-reminder-regexp "[w]")
+ (0 howm-reminder-defer-face prepend))
+ t)
+ ;; add entries in howm-menu (press enter on the text)
+ (dolist (aldr-additions '(("\\[Mtg\\]"
+ (lambda (&optional dummy)
+ (howm-create 2)))
+ ("\\[Person\\]"
+ (lambda (&optional dummy)
+ (howm-create 3)))))
+ (add-to-list 'action-lock-default-rules
+ aldr-additions
+ t))
+ (dolist (hooks '(after-save-hook howm-mode-hook))
+ (add-hook hooks 'howm-mode-set-buffer-name))
:bind
(("<f6>" . howm-menu)
("S-<f6>" . re/howm-menu-new-frame)