Re: [ILUG] Emacs vs. Vi

From: Andy Ferguson (ilug at domain moil.demon.co.uk)
Date: Sat 24 Apr 1999 - 14:37:40 IST


On Fri, 23 Apr 1999, Raymond Kelly wrote:

> On Fri, 23 Apr 1999, John P. Looney wrote:
>
> A while back (slackware 2.x - 3.(small number)) I used to use jed as an
> editor of choice, smaller/faster than emacs with roughly the same
> keybindings, and FAR less cryptic than vi. it's major advantage for me
> was that it had nifty syntax highlighting setup by default. Once I moved
> to red hat as my dist of choice this option was gone & I couldn't find any
> fm to r that would let me in on how to set this up (I didn't have net
> access from home to search more thouroughly). Would anyone have come
> across this before & figured out a solution so I can get my nice colours
> back. Someday I'd like to revisit the jed that I rememberd & loved, time
> permitting of course :)

Hurrah - the voice of reason at last!

To switch colour on edit /usr/lib/jed/lib/jed.rc and look for

        USE_ANSI_COLOR = 1; % 0 is off, 1+ is on
                
Later in the same file are the colour attributes for the various
syntax structures
                
To make sure syntax highlighting works for your language of choice
depends on the file extension (ie. .c .pl .html etc) and sometimes
#!/bin/sh in the first line. File extensions can be extended by
adding lines like

        add_mode_for_extension("c", "c++");
                
usually at the end of the jed.rc file. Language specific syntax
highlighting is defined for tex, perl, c, shell-scripts, html and
maybe others.

Early versions of RedHat 5 had a broken/binary-incompatible slang library which choked
jed to death. If you experience this, I think a simple recompile of
jed and slang fixes it.

[written in jed emulating Emacs pretending its pico]

Andy Ferguson
~~~~~~~~~~~~~
Sysop MOIL BBS +44-1247-273357
andy at domain moil.demon.co.uk



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:09 GMT