[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.
- Comments in emacs, Olivier Lefevre, 2007/12/27
- Re: Comments in emacs, novakyu, 2007/12/27
- Re: Comments in emacs, Olivier Lefevre, 2007/12/27
- Re: Comments in emacs,
Jordi Gutiérrez Hermoso <=
- Re: Comments in emacs, Olivier Lefevre, 2007/12/28
- Re: Comments in emacs, Jordi Gutiérrez Hermoso, 2007/12/28
- Re: Comments in emacs, Olivier Lefevre, 2007/12/28
- String in emacs octave mode. Was: Comments in emacs, Peter A. Gustafson, 2007/12/29
- Re: String in emacs octave mode. Was: Comments in emacs, Jordi Gutiérrez Hermoso, 2007/12/29
Re: Comments in emacs, Peter A. Gustafson, 2007/12/28