Re: automatic nesting and indentation in emacs

2005-02-25 Thread Ben Barrowes
In emacs matlab-mode, highlight a region then use indent-region: C-M-\ runs the command indent-region which is an interactive compiled Lisp function in `indent'. (indent-region START END COLUMN) Indent each nonblank line in the region. With prefix no argument, indent each line using `indent-acco

Re: automatic nesting and indentation in emacs

2005-02-25 Thread Chris Smith
> Thomas Heller <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (porterboy) writes: >> CONTEXT: I am using Emacs to edit Python code and sometimes >> also Matlab code. When I hit in a loop of some sort, >> Emacs usually gets the nesting indentation right, which is >> part

Re: automatic nesting and indentation in emacs

2005-02-25 Thread Thomas Heller
[EMAIL PROTECTED] (porterboy) writes: > CONTEXT: > I am using Emacs to edit Python code and sometimes also Matlab code. > When I hit in a loop of some sort, Emacs usually gets the > nesting indentation right, which is particularly important in Python. > To ensure this I have used python-mode.el a