Doing the automatic Indentation of the whole text in Emacs
Hi, I use emacs to write in C, Java, Latex and other languanges. I can always make an automatic indentation of each line of the text pressing the tab key. However I wonder if there is a way to indent the whole text with a single command.
Thanks to any help. |
Try searching LQ before asking a question:
See the following thread, http://www.linuxquestions.org/questi...-emacs-803059/ |
Quote:
Well, I found that simple and useful link: http://everything2.com/title/the+key...rs+should+know and then I was able to find a kind of "help commands" like C-x C-h and C-h b with which it is possible to find a lot of commands. At last, I found the "indent selected region" command C-M-\ that if pressed after the "select all" command C-x h will indent all text. Now I would like how could I create a new single command that would work as this two above. I'm reading an emacs tutorial: http://www.emacswiki.org/emacs-en but the syntax of the .emacs file does not seem very easy to me. Thanks again. |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 06:20 AM. |