help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comments in emacs


From: Jordi Gutiérrez Hermoso
Subject: Re: Comments in emacs
Date: Fri, 28 Dec 2007 01:00:51 -0600

On 27/12/2007, Olivier Lefevre <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]