From: highfly22 at gmail.com (highfly22)
Subject: [Howm-eng 24] How to add my own action lock in howm?
Date: Fri, 17 Mar 2006 23:18:56 +0800 [thread overview]
Message-ID: <441AD360.9020705@gmail.com> (raw)
Hi,
I am try to do this, just like action lock between {*} {-} { }
(defvar priority-ring '("!H" "!M" "!L" "!-" "!H"))
(defvar priority-rule
'("\\(!H\\|!M\\|!L\\|!-\\)[ \t]"
(lambda
(&optional dummy)
(let*
((b
(match-beginning 1))
(e
(match-end 1))
(ring
priority-ring)
(s
(match-string-no-properties 1))
(next
(cadr
(member s ring))))
(delete-region b e)
(goto-char b)
(insert next)
(goto-char b))
) 0 ))
(defun gtd-action-lock()
(action-lock-add-rules (list context-rule))
)
(add-hook 'action-lock-mode-on-hook 'gtd-action-lock)
But it doesn't work, I don't know why?
And how can I add my action lock in howm-mode?
Thanks
Regards,
Highfly
reply other threads:[~2006-03-17 15:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=441AD360.9020705@gmail.com \
--to=howm-eng@lists.osdn.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).