Send As SMS

2/8/2006

how to auto-indent in emacs

one of the reasons why i use emacs, as opposed to just a vanilla text editor, is that it auto-indents your code. all you've got to do is ask it to do so nicely.

just highlight the region of code you want indented (control-space at the beginning of the text block, then move the blinking cursor to the end of the text block) and hit:

>> C-M-\
or, "control-meta-backslash."


0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.