[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] planner-mode wishlist
From: |
Jim Ottaway |
Subject: |
Re: [emacs-wiki-discuss] planner-mode wishlist |
Date: |
Tue, 14 Mar 2006 15:47:46 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>>>>> Evan Monroig <address@hidden> writes:
> - hide tasks ids {{Tasks:2}}, etc.
> I don't know the internals, but looking at my plan pages, I see that
> half of the text of a link is hidden from view. So why not also hide
> the tasks ids, with a regexp like "{{Tasks:\\[0-9\\]\\+}}" ?
You could re-define planner-id-markup like this:
(defun planner-id-markup (beg end &optional verbose)
"Highlight IDs as unobtrusive, clickable text from BEG to END.
VERBOSE is ignored."
(goto-char beg)
(while (re-search-forward "\\s-*{{Tasks:[^}]+}}" end t)
(planner-highlight-region
(match-beginning 0)
(match-end 0)
'planner-id 60
(list
'invisible 'muse
'intangible nil
;;'keymap planner-id-keymap
))))
It's possible that the task id might get accidentally deleted while
one is editing though.
--
Jim Ottaway