public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
* [Howm-eng 24] How to add my own action lock in howm?
@ 2006-03-17 15:18 highfly22
  0 siblings, 0 replies; only message in thread
From: highfly22 @ 2006-03-17 15:18 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-17 15:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-17 15:18 [Howm-eng 24] How to add my own action lock in howm? highfly22

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).