- Subject: Re: hooks and modes
- From: Duke Normandin <dukeofperl@xxxxxxx>
- Date: Fri, 14 Nov 2008 05:24:11 -0700 (MST)
On Thu, 13 Nov 2008, G. Milde wrote:
> On 13.11.08, Duke Normandin wrote:
> > On Wed, 12 Nov 2008, G. Milde wrote:
>
> > > On 11.11.08, Duke Normandin wrote:
> > >
[snip]
> > So what is the syntax for writing
> > a xxxxx_mode_hook()?
>
> No special syntax, just define a function with the correct name:
>
> define xxxxx_mode_hook()
> {
> % some action
> }
So, e.g. html_mode_hook, mumps_mode_hook, etc?
^^^^ ^^^^^
>
> > html-mode now appears to be working automatically. I'm using Jed on an
> > OS X Leopard box, so maybe some of the Terminal setting were a bit
> > off. I fiddled with the settings and I now have one-color syntax
> > highlighting - red - for the html tags. Not great, but better than
> > nothing.
>
> Normally, you will have a
>
> mode: <your-mode>
Yes - in the middle of my status line I see (html)
> message on your status line. Also,
>
> M-X vinsert("%S %S", what_mode)
>
> could help.
I cannot get the above to work. For some bizarre reason, it will not
allow me to enter a space after the first %S. ????
>
> Do you have more colours in other modes?
Yes. When I view a .sl file, the SLang syntax highlighting is great.
[snip]
> Yes. Alternatively, have a look at
>
> http://jedmodes.sourceforge.net/doc/foo.sl.html
> http://jedmodes.sourceforge.net/doc/foo.sl
Got it!
[snip]
> autoload("mumps", "mumps.sl");
> add_mode_for_extension("mumps", "mu"); % mode for mumps
In .jedrc file I take it?
>
> Günter
--
Duke Normandin
dukeofperl(at)ml1(dot)net
edit my email address
[2008 date index]
[2008 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]