From a2ffd2f870677972c2d551242e341cc857d21bb1 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 3 Feb 2022 14:05:46 +0100 Subject: [PATCH] Emacs: Set LaTeX and Python tabs to width 4 --- .config/emacs/config.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 94b929e..87f63a1 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -1629,7 +1629,18 @@ Evil command aliases. (add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0))) ;; LaTeX, set correct tab mode -(add-hook 'latex-mode-hook (lambda () (setq indent-tabs-mode t))) +(add-hook 'latex-mode-hook (lambda () + (setq indent-tabs-mode t) + (setq tab-width 4))) +(add-hook 'LaTeX-mode-hook (lambda () + (setq indent-tabs-mode t) + (setq tab-width 4))) + +;; Python +(add-hook 'python-mode-hook (lambda () + (setq indent-tabs-mode t) + (setq python-indent-offset 4) + (setq tab-width 4))) ;; Disable line numbers (add-hook 'Custom-mode-hook 'dot/hook-disable-line-numbers)