I am trying to set up auto-indent-mode.

I added it to my init-file like this, but it won't run:


How can I tell Emacs to enable auto-indent-mode at startup?

  • 4
    Welcome to Emacs.SE! Please have a look at the EmacsWiki page on auto-indent-mode to see what it has to say about what to put in your init file. As a general rule, please try to ask one question at a time -- so ask a separate question about splitting windows if a google search or a search on this site do not provide the answer. – Dan Nov 15 '14 at 2:22
  • 1
    Asad-ullah Khan: When discussing a third-party library, always provide a link to that library. – phils Nov 15 '14 at 2:25
  • 1
    Have a look at the functions split-window-horizontally and split-window-vertically. As indicated, you should probably post a new question for your 3-way split with some more details regarding how you want that to work -- e.g., manually, or automatically; if automatically, under what circumstances and how will you determine which buffers should be placed as A, B and C. – lawlist Nov 15 '14 at 6:25

Alright, the solution was to use:


  • 1
    Note that if you use packages that auto-indent whole buffer, it could slow down your Emacs even on a slightly large buffer with over 5000 lines. You will notice a slight delay for every character entered. – Tu Do Nov 15 '14 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.