Re: How to add user defined highlight to muse-mode
Michael Olson <[email protected]>
| Newsgroups | gmane.emacs.wiki.general |
|---|---|
| Message-ID | <[email protected]> |
highfly22 <[email protected]> writes: > All I want are like this: > > (defvar gtd-font-lock-keywords > '(("^\\.\\[N\\]" . howm-reminder-done-face) > ("^\\[N\\]" . gtd-next-action-face) > ("^\\[P\\]" . gtd-project-face) > ("^\\[S\\]" . gtd-someday-face) ) > "highlight for next action list, project list and someday list" > ) > > (font-lock-add-keywords nil gtd-font-lock-keywords) > > It is to add some completely new highlighting rules using > font-lock-mode. It works at the text mode, but no uses in > muse-mode. The following should work, instead of using `font-lock-add-keywords'. (dolist (rule gtd-font-lock-keywords) (add-to-list 'muse-colors-markup (list (car rule) t (cdr rule)) t)) -- Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: Emacs Lisp, text markup, protocols -- Muse, Planner, ERC, EMMS /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG |_] | \| |_| Jabber: mwolson_at_hcoop.net _______________________________________________ emacs-wiki-discuss mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
signature.asc
(application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEL+Z5+1Ho2POo0xkRAqZzAJ92j/t0Us7Pkbu2gkkHDGAbcC/fUQCdFSwU HvmJYqMq+LkVneVMl9lBe6c= =X/Hh -----END PGP SIGNATURE-----