Emacs: Set LaTeX and Python tabs to width 4

This commit is contained in:
Riyyi
2022-02-03 14:05:46 +01:00
parent 7cc8839152
commit a2ffd2f870
+12 -1
View File
@@ -1629,7 +1629,18 @@ Evil command aliases.
(add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0))) (add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0)))
;; LaTeX, set correct tab mode ;; 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 ;; Disable line numbers
(add-hook 'Custom-mode-hook 'dot/hook-disable-line-numbers) (add-hook 'Custom-mode-hook 'dot/hook-disable-line-numbers)