projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a816b7
)
emacs: add some tex-mode hooks for better editing experience
author
Amin Bandali
<bandali@gnu.org>
Fri, 30 Aug 2019 22:55:10 +0000
(18:55 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Fri, 30 Aug 2019 22:55:10 +0000
(18:55 -0400)
enable:
- auto-fill-mode
- flyspell-mode
disable:
- electric-indent-mode (locally)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
b2c99f8
..
1432dda
100644
(file)
--- a/
.emacs.d/init.el
+++ b/
.emacs.d/init.el
@@
-1184,7
+1184,10
@@
This function is intended for use with `ivy-ignore-buffers'."
:config
(cl-delete-if
(lambda (p) (string-match "^---?" (car p)))
:config
(cl-delete-if
(lambda (p) (string-match "^---?" (car p)))
- tex--prettify-symbols-alist))
+ tex--prettify-symbols-alist)
+ :hook ((tex-mode . auto-fill-mode)
+ (tex-mode . flyspell-mode)
+ (tex-mode . (lambda () (electric-indent-local-mode -1)))))
\f
;;; Theme
\f
;;; Theme