From: Tim Johnson <tim@johnsons-web.com>
Subject: Re: Derived Mode 101 HOWTO
Date: Mon, 13 Mar 2006 23:57:30 -0000 [thread overview]
Message-ID: <slrne1bvkc.7e4.tim@linus.johnson.com> (raw)
In-Reply-To: yoij1wx681v7.fsf@linus003.dd.chalmers.se
Hi Johan:
In gnu.emacs.help, you wrote:
> Well, 'font-lock-newlisp-keywords-face is an "expression whose value
> is the face name to use", but apparently you shouldn't trust the
> documentation. (That's one of the reasons i don't use XEmacs. :)
I'm a GNU type of person, but we have identified XEmacs as a possible
platform for Windows-using clients, since our clients think that it is
more modern-looking (on windows) than GNU emacs.
We'll see. "modern-looking" is not so important to me.
Additionally, I have found this newsgroup *far* more helpful than the
XEmacs newsgroup (no offense meant to the other).
> Try replacing the last line above with this:
>
> 0 'font-lock-newlisp-keywords-face)
You have put the finishing nail in this piece of the endeavor!
;; code below. See the addition of a second face
(defvar newlisp-font-lock-keywords
`(,@scheme-font-lock-keywords
(,(concat "\\<\\(" newlisp-keywords "\\)\\>")
0 'font-lock-newlisp-keywords-face)
(,(concat "\\<\\(" newlisp-user-keywords"\\)\\>")
0 'font-lock-newlisp-user-keywords-face))
"List of newlisp keywords and faces")
I want to add keybinding and a menu - I expect that will go more smoothly.
:-)
Look for Derived Mode 102 HOWTO in a week or so.
After I get the mode where I want it, then I will also provide a (hopefully)
easy-follow 'template' to add further derived modes with minimum heartburn.
Next step is to read much documentation in depth.
Thank you Johan.
Thank you Stefan.
Cheers
Tim
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com
next prev parent reply other threads:[~2006-03-13 23:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-06 17:59 Derived Mode 101 HOWTO Tim Johnson
2006-03-07 18:01 ` Stefan Monnier
2006-03-08 2:58 ` Tim Johnson
2006-03-08 5:46 ` Stefan Monnier
2006-03-08 16:58 ` Tim Johnson
2006-03-11 17:15 ` Stefan Monnier
2006-03-12 0:57 ` Tim Johnson
2006-03-12 13:49 ` Stefan Monnier
2006-03-13 1:48 ` Tim Johnson
2006-03-13 10:10 ` Johan Bockgård
2006-03-13 17:57 ` Tim Johnson
2006-03-13 21:35 ` Johan Bockgård
2006-03-13 23:57 ` Tim Johnson [this message]
2006-03-12 5:29 ` Johan Bockgård
2006-03-12 17:50 ` Tim Johnson
2006-03-12 18:14 ` Johan Bockgård
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=slrne1bvkc.7e4.tim@linus.johnson.com \
--to=tim@johnsons-web.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.