Browse Source

Emacs: Set LaTeX and Python tabs to width 4

master
Riyyi 3 years ago
parent
commit
a2ffd2f870
  1. 13
      .config/emacs/config.org

13
.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)

Loading…
Cancel
Save