Is it possible to prevent indentation in a TEX file? reddit / emacs ---------------------------------------------------------------------- zoliky · 2022-03-06 14:13 ---------------------------------------------------------------------- zoliky · 2022-03-06 14:13 Emacs keeps indenting my \phrases tags, each new phrase gets an additional indentation. I want everything to stay at the same indentation level, like so: \phrase {} {} {} \phrase {} {} {} \phrase {} {} {} In other words I don't need any indentation for any content between \enumerate Should I use M-x and disable the electric indenting mode temporary while working on the document? ---------------------------------------------------------------------- fredefox · 2022-03-06 17:27 You could use .dir-locals.el to disable electric indent mode. Or indeed just disable it for the tex mode. ---------------------------------------------------------------------- griffinstreet · 2022-03-06 19:13 If you're using AUCTeX, you could try adjusting LaTeX-indent- environment-list. [https://emacs.stackexchange.com/questions/20183/how-can-i-prevent- auctex-to-indent-a-new-environment-inside-another- environment](https://emacs.stackexchange.com/questions/20183/how-can- i-prevent-auctex-to-indent-a-new-environment-inside-another- environment) ---------------------------------------------------------------------- gmfawcett · 2022-03-06 22:25 Out of curiosity: did you mean to use `\item` in that enumeration? Is `\phrase` an item-like command that you created? ---------------------------------------------------------------------- consolepeep · 2022-03-07 02:48 What is this font man? ---------------------------------------------------------------------- loubki · 2022-03-07 07:27 Looks like Fira code. ---------------------------------------------------------------------- consolepeep · 2022-03-07 08:01 I see but this font look more cleaner 🤠 ---------------------------------------------------------------------- loubki · 2022-03-07 08:03 Hi res and sharp AA probably create this effect ---------------------------------------------------------------------- zoliky · 2022-03-07 14:08 Hack font with the gruvbox theme. `(set-face-attribute 'default nil :font "Hack" :height 180)` However, you should have the font installed on your computer. Here's the GitHub page: https://github.com/source-foundry/Hack/ Direct download link: https://github.com/source- foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip On Unix-like systems, place the .ttf files under your home folder's `.fonts` folder, like so: ~/.fonts/Hack-BoldItalic.ttf ~/.fonts/Hack-Regular.ttf ~/.fonts/... To make sure the changes take effect log out of your desktop environment or reboot.