Comments in emacs
Jordi Gutiérrez Hermoso
jordigh at gmail.com
Fri Dec 28 01:00:51 CST 2007
On 27/12/2007, Olivier Lefevre <lefevrol at yahoo.com> wrote:
> Thanks but the behaviour is the same whether I use # or %.
> I may well have to fall back on fundamental mode, though.
Emacs' Octave mode assumes you want to use a single % or # for
comments that are indented all the way to the right, %% or ## for
comments that are indented at code level, and %%% or ### for comments
that have to go unindented, all the way to the left.
I know this is not the way the competition likes to use comments, but
they actually look rather nice in Octave code. Oh, and might as well
get used to # and ## like almost every other scripting language does.
In general, Octave syntax repairs brain damage. ;-)
Emacs also has a matlab mode (in Debian and derivatives, available in
the emacs-goodies-el package) which you may also like if you
absolutely must indent with % at code level.
HTH,
- Jordi G. H.
More information about the Help-octave
mailing list