* Syntax highlighting for another languaje
@ 2002-11-26 20:33 Bermudez, Leonardo
0 siblings, 0 replies; 3+ messages in thread
From: Bermudez, Leonardo @ 2002-11-26 20:33 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
Hi,
I was wondering how can I define font-locking for another languaje. This
languaje is just comment lines that start with "--", some comands in
uppercase and numbers (its an input file for another program). I was
checking some of the definitions for awk, c++ and others but they were
intimidating for my newibie level in lisp.
The other problem that I have is that I am just at user level in a linux
box and I do not have administrative rights.
Any help is appreciated
Thanks
Leo
[-- Attachment #2: Type: text/html, Size: 1105 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Syntax highlighting for another languaje
[not found] <mailman.1038342860.17701.help-gnu-emacs@gnu.org>
@ 2002-11-27 8:39 ` Oliver Scholz
2002-11-27 16:55 ` Benjamin Riefenstahl
1 sibling, 0 replies; 3+ messages in thread
From: Oliver Scholz @ 2002-11-27 8:39 UTC (permalink / raw)
"Bermudez, Leonardo " <lbcd@ChevronTexaco.com> writes:
[...]
> I was wondering how can I define font-locking for another
> languaje. This languaje is just comment lines that start with "--",
> some comands in uppercase and numbers (its an input file for another
> program). I was checking some of the definitions for awk, c++ and
> others but they were intimidating for my newibie level in lisp.
[...]
Have a look at `define-generic-mode'. This makes it easy to define
simple modes.
See <URL: http://www.emacswiki.org/cgi-bin/wiki.pl?GenericMode> for
more information.
For more complex stuff there is a tutorial at
<URL: http://two-wugs.net/emacs/mode-tutorial.html>
Oliver
--
7 Frimaire an 211 de la Révolution
Liberté, Egalité, Fraternité!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Syntax highlighting for another languaje
[not found] <mailman.1038342860.17701.help-gnu-emacs@gnu.org>
2002-11-27 8:39 ` Oliver Scholz
@ 2002-11-27 16:55 ` Benjamin Riefenstahl
1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Riefenstahl @ 2002-11-27 16:55 UTC (permalink / raw)
Hi Leo,
"Bermudez, Leonardo " <lbcd@ChevronTexaco.com> writes:
> I was wondering how can I define font-locking for another
> languaje. This languaje is just comment lines that start with "--",
> some comands in uppercase and numbers (its an input file for another
> program).
Have a look at lisp/generic.el and lisp/generic-x.el. The first
defines the function define-generic-mode (see also C-h f
define-generic-mode), the other uses that for a number of simple
modes that you can use as examples.
> The other problem that I have is that I am just at user level in a
> linux box and I do not have administrative rights.
You can define a generic mode in your ~/.emacs. If things get larger
or you want to use code from other sources, you can always create your
own elisp directory in your home and add that to your load-path
variable in ~/.emacs.
Hope this helps, benny
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-27 16:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 20:33 Syntax highlighting for another languaje Bermudez, Leonardo
[not found] <mailman.1038342860.17701.help-gnu-emacs@gnu.org>
2002-11-27 8:39 ` Oliver Scholz
2002-11-27 16:55 ` Benjamin Riefenstahl
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.