[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About indent when edit .m(Matlab) file with emacs
From: |
aday |
Subject: |
About indent when edit .m(Matlab) file with emacs |
Date: |
Mon, 12 Nov 2007 12:01:57 -0000 |
User-agent: |
G2/1.0 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- About indent when edit .m(Matlab) file with emacs,
aday <=