chiark / gitweb /
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile
authorMark Wooding <mdw@distorted.org.uk>
Tue, 9 Feb 2016 18:45:17 +0000 (18:45 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 9 Feb 2016 18:45:17 +0000 (18:45 +0000)
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile:
  el/dot-emacs.el: Make `tab' key more useful in TeX modes.

el/dot-emacs.el

index b1b901bd6211e6d1fb167b96171658a8d2d81a05..4286f7378ac83adebe37fa458763dde4510eb11e 100644 (file)
@@ -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]*\\)")