all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.