Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Indenting is used to organize code by indicating blocks, closures, conditionals, and other constructs. It makes code easier to read, and in some languages is used to handle control flow.
2
votes
2
answers
474
views
Disable indentation in all modes
Every mode in Emacs has its own rules for indentation. I don't want that. How can I disable it and have custom indentation rules for every mode? …
5
votes
2
answers
1k
views
Indentation of newlines
I am writing source code and a lot of times I need to press Enter and have the newline indented with 4 spaces more than the previous. As I don't want to do it always, I would like to be able to use C- …
7
votes
4
answers
5k
views
Confusion by the usage of indent-tabs-mode nil
I use (setq-default indent-tabs-mode nil) in my init file so to avoid using TABs but when I write some files (like C++ files) then it allows me to insert TABs if I am in an if-statement for example. W …
3
votes
1
answer
727
views
Python and aggressive-indent
I am trying to use aggressive-indent, which I find great, but when I am writing Python code it doesn't seem to work (although general it works fine). I may miss something in the usage of aggressive-in …
4
votes
2
answers
4k
views
Indentation after braces in C
I don't know what the formal name of it is (this being one of the reasons that I can't find how to achieve it). But, what I want is to make Emacs start the second bracket with the same amount of space …
3
votes
1
answer
346
views
Weird indentation behavior in C++ mode
In C++ mode there is the following behavior of the indentation:
Why is this happening? How can I fix it? …