* [Howm-eng 25] Re: How to add my own action lock in howm?
@ 2006-03-18 11:39 khi
0 siblings, 0 replies; only message in thread
From: khi @ 2006-03-18 11:39 UTC (permalink / raw)
Hi. Thanks for your interest.
At Fri, 17 Mar 2006 23:18:56 +0800,
highfly22 at gmail.com 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 at users.sourceforge.jp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-18 11:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-18 11:39 [Howm-eng 25] Re: How to add my own action lock in howm? khi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).