diff options
author | Amin Bandali <bandali@gnu.org> | 2019-08-30 18:55:10 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-08-30 18:55:10 -0400 |
commit | 0758ec382db1a5e1e145e3e9dbf7dfe796e4f10a (patch) | |
tree | e68f9e093f4f94a865c6479786e1a249eda1a540 | |
parent | 2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1 (diff) | |
download | configs-0758ec382db1a5e1e145e3e9dbf7dfe796e4f10a.tar.gz configs-0758ec382db1a5e1e145e3e9dbf7dfe796e4f10a.tar.xz configs-0758ec382db1a5e1e145e3e9dbf7dfe796e4f10a.zip |
emacs: add some tex-mode hooks for better editing experience
enable:
- auto-fill-mode
- flyspell-mode
disable:
- electric-indent-mode (locally)
-rw-r--r-- | .emacs.d/init.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index b2c99f8..1432dda 100644 --- 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))) - 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))))) ;;; Theme |