unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* About indent when edit .m(Matlab) file with emacs
@ 2007-11-12 12:01 aday
  0 siblings, 0 replies; only message in thread
From: aday @ 2007-11-12 12:01 UTC (permalink / raw)
  To: help-gnu-emacs

I use emacs 22.1.1 and Matlab2007b in Ubuntu and set Matlab to Emacs
mode as it says in $MatlabPath/java/extern/EmacsLink/install.html.

There is some problem with indent. When a type 'end' to end a block or
a function, the string 'end' could not indent correctly.

For instance, when a type 'end' and 'Return' key after a loop, it
shows like this:
--------------------------------------
for i=1:10
    disp(i);
    end

--------------------------------------
But what I want is the 'end' indent align to 'for'. Like this:
--------------------------------------
for i=1:10
    disp(i);
end

--------------------------------------

What should I do?

Thanks

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-12 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 12:01 About indent when edit .m(Matlab) file with emacs aday

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).