Discussion:
auto-indent in fortran mode: nedit vs xemacs
Giuseppe Angilella
2008-07-25 06:55:42 UTC
Permalink
Hi,

I'd like to move from xemacs to nedit.

One of the features of xemacs (seemingly) missing in nedit is, however,
the possibility of auto-indenting a line by giving a tab character in the
middle of a line.

I know I can set a new default setting for the Emulated tabs, which I did,
setting the value to 6 spaces. This is helpful in shifting a line six
characters to the right, by typing tab _at the beginning_ of the given
line.

However, in xemacs, when typed _in the middle_ of a given line, a tab
automatically shifts the whole line the necessary number of spaces to the
right (e.g. 6, or 9, or 12), in order to indent it properly, e.g. when
within a do or if loop.

Is there any way of customizing the behaviour of the tab character also in
nedit, perhaps only within the Fortran mode?

Many thanks.

Giuseppe.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Joerg Fischer
2008-07-25 16:14:58 UTC
Permalink
Post by Giuseppe Angilella
One of the features of xemacs (seemingly) missing in nedit is, however,
the possibility of auto-indenting a line by giving a tab character in the
middle of a line.
The right default short-cut for this is Shift+Ctrl+0.
Post by Giuseppe Angilella
Is there any way of customizing the behaviour of the tab character also in
nedit, perhaps only within the Fortran mode?
Yes, key-bindings can be changed. I vaguely remember to have seen the
Tab key rebound to 'Shift Right' - the name for the feature you're
looking for in NEdit, cf. the Edit menu.

Cheers,
Jörg
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Loading...