all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How easy to create new major mode?
@ 2003-01-31 14:47 Tim Morley (remove vegetable for email address)
  2003-01-31 15:31 ` Stefan Monnier <foo@acm.com>
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tim Morley (remove vegetable for email address) @ 2003-01-31 14:47 UTC (permalink / raw)


Hi all.

I believe the solution to my current emacs challenge will be to create a new
major mode, albeit a very simple one. I'd be grateful for
   (a) confirmation that this is the way to attack the problem (or failing
that, a better suggestion)
and assuming this is indeed the case
   (b) guidance/URLs/code samples to help me put together what I need.

What I would like to achieve is a customised system of syntax colouration,
to help with reading through hundreds of lines of text. All I need is for
lines starting with the word User to come up in, say, magenta, and lines
starting with System in blue, with a default text colour of grey. (There are
carriage-returns at the end of each line of text, so my keywords will always
be at the beginning of a new line).

I've had a look at the .el files for the various existing modes, but as an
absolute novice in Lisp, I'm not sure which are the relevant bits to
cut-out-and-keep.

Any pointers will be very gratefully received. Cheers all.


Tim Morley

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-01-31 17:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-31 14:47 How easy to create new major mode? Tim Morley (remove vegetable for email address)
2003-01-31 15:31 ` Stefan Monnier <foo@acm.com>
2003-01-31 15:58 ` Brendan Halpin
2003-01-31 16:45   ` Tim Morley (remove vegetable for email address)
2003-01-31 16:45 ` Colin Marquardt
2003-01-31 17:02 ` Friedrich Dominicus

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.