chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe307a8
)
el/dot-emacs.el: Make `tab' key more useful in TeX modes.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 26 Jan 2016 10:00:46 +0000
(10:00 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 26 Jan 2016 10:00:46 +0000
(10:00 +0000)
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index b1b901bd6211e6d1fb167b96171658a8d2d81a05..4286f7378ac83adebe37fa458763dde4510eb11e 100644
(file)
--- 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]*\\)")