Timeline for answer to Set 4 Space Indent in Emacs in Text Mode by phils
Current License: CC BY-SA 4.0
Post Revisions
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 26, 2022 at 23:07 | comment | added | phils |
I've just commented there as well, but please refer to the very top part of this (my) answer where I noted that, since Emacs 24.4, you should probably leave tab-stop-list alone. Nowadays its default value of nil means "an implicit tab-stop every tab-width columns". Everything in my answer below the text "original answer follows..." is for Emacs version 24.3 and earlier.
|
|
| Feb 26, 2022 at 22:41 | comment | added | questionto42 |
Fyi, this answer solves the (setq tab-stop-list (number-sequence 4 200 4)) of above without the 200 limit but with an infinite sequence.
|
|
| Mar 5, 2021 at 14:44 | comment | added | phils |
The variable tex-indent-basic seems like the most important one. There's also tex-indent-item, tex-indent-item-re, tex-indent-allhanging, latex-noindent-environments, latex-noindent-commands. Very good first steps are always M-x customize-group for the library in question, and M-x apropos-variable RET indent\|offset RET
|
|
| Mar 5, 2021 at 11:27 | comment | added | alper | Do you have an a starting guide for start reading? I was just trying to apply 4 space indent on the example code piece here (tex.stackexchange.com/q/585896/127048) ; but I tried all the ansers in this thread and all does 2 space no matter what | |
| Mar 5, 2021 at 2:31 | comment | added | phils | @alper: Indentation functionality can vary hugely from mode to mode -- different languages can have extremely different rules and requirements. You'll have to do some reading about how Emacs does LaTeX (I presume) indentation specifically. | |
| Mar 4, 2021 at 22:40 | comment | added | alper | Indent seems 4 in but still emacs applies 2 spaces in between \begin{tikzpicture} and \end{tikzpicture} | |
| Apr 22, 2019 at 23:43 | history | edited | phils | CC BY-SA 4.0 |
added 356 characters in body
|
| Apr 22, 2019 at 23:36 | comment | added | phils |
@JamesWaldby-jwpat7 Indeed, that happened in 24.4 (2014). NEWS says: "tab-stop-list is now implicitly extended to infinity. Its default value is changed to nil which means a tab stop every tab-width columns." -- so in fact you can just use the default value of nil.
|
|
| Apr 22, 2019 at 15:33 | comment | added | James Waldby - jwpat7 | emacs indent customize page says tab list "implicitly extends to infinity through repetition of the last step" - which means a list (4 8) ought to be good enough, without explicit number-sequence | |
| Jul 5, 2015 at 7:40 | comment | added | Karpov | This is the only answer that I could get to work on my system. | |
| May 3, 2012 at 21:20 | history | edited | phils | CC BY-SA 3.0 |
added 40 characters in body
|
| May 3, 2012 at 20:59 | history | answered | phils | CC BY-SA 3.0 |