master switch to electric

dersu avatardersu created an issue

Hello,

Is there a command for switching off the electric things? I like indenting lines by hitting tab, but I find auto-indentation a bit annoying. I would like to have a command that I could put into the .emacs file.

Also similarly to set the indentation size. I use 2 instead of 4.

Thanks a lot! @

Comments (2)

  1. Ivan Andrus

    If you run `M-x customize-group RET gap RET` you can see all of the (easily changeable) variables. There you can turn off the electric equals, percent, and semicolon individually. You can also turn off gap-pre-return-indent and gap-post-return-indent there. I could probably add a method of disabling all of them at the same if you think that would be useful, but I'm not convinced at the moment. You can also change gap-indent-step there. If you prefer to not use customize you can add

    (setq gap-indent-step 2 gap-pre-return-indent nil gap-post-return-indent nil)

    to an appropriate hook or eval-after-load block.

    If this solution is not satisfactory, feel free to reopen the ticket (or create a new one if you prefer).

  2. dersu

    Thanks for the info! This solves my problems. I think unless someone else requests for the master switch, you can simply ignore my request. @

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.