From: Mark Wooding Date: Tue, 26 Jan 2016 10:00:46 +0000 (+0000) Subject: el/dot-emacs.el: Make `tab' key more useful in TeX modes. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/df200ecdacc235b486dc4858b146d64fd7a92ae7 el/dot-emacs.el: Make `tab' key more useful in TeX modes. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index b1b901b..4286f73 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2739,6 +2739,10 @@ (defun mdw-fontify-tex () (modify-syntax-entry ?$ "." font-lock-syntax-table) (local-set-key [?$] 'self-insert-command) + ;; Make `tab' be useful, given that tab stops in TeX don't work well. + (local-set-key "\C-i" 'indent-relative) + (setq indent-tabs-mode nil) + ;; Set fill prefix. (mdw-standard-fill-prefix "\\([ \t]*%+[ \t]*\\)")