[Howm-eng 25] Re: How to add my own action lock in howm?

アーカイブの一覧に戻る

khi****@users***** khi****@users*****
Sat Mar 18 20:39:38 JST 2006


Hi. Thanks for your interest.

At Fri, 17 Mar 2006 23:18:56 +0800,
highf****@gmail***** wrote:
> And how can I add my action lock in howm-mode?

The easiest way is adding your rules to action-lock-default-rules.

(add-to-list 'action-lock-default-rules
             (action-lock-switch '("!H" "!M" "!L" "!-")))

Another way is like below.

(defvar priority-rule (action-lock-switch '("!H" "!M" "!L" "!-")))
(defun gtd-action-lock()
  (action-lock-add-rules (list priority-rule)))
(add-hook 'action-lock-mode-on-hook 'gtd-action-lock t) ;; append!

You have to *append* your hook to action-lock-mode-on-hook.
This unnecessary restriction is caused by my misunderstanding and
bad manner about easy-mmode-define-minor-mode.
I'll try to fix it in the next version.

-- 
khi****@users*****



More information about the Howm-eng mailing list
アーカイブの一覧に戻る