summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-02-01 19:40:32 +0100
committerAlan Pearce2016-02-01 19:40:32 +0100
commit867e97a7c1bae699c5d043be26b44aff45fc68a0 (patch)
tree0eb69b907ea6ffda9735c27d1bf66f4fd1b3c1cd
parent53bc9ff3cf20191ad7b07f482ffb6418404e7dfd (diff)
downloaddotfiles-867e97a7c1bae699c5d043be26b44aff45fc68a0.tar.lz
dotfiles-867e97a7c1bae699c5d043be26b44aff45fc68a0.tar.zst
dotfiles-867e97a7c1bae699c5d043be26b44aff45fc68a0.zip
Emacs: Disable typo-mode in yaml and jinja modes
-rw-r--r--tag-emacs/emacs.d/init.org6
1 files changed, 5 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index ab234c9..0451fe7 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2313,7 +2313,11 @@ type them.
     :config (progn
               (typo-global-mode 1))
     :init (progn
-            (add-hook 'text-mode-hook #'typo-mode)))
+            (add-hook 'text-mode-hook #'typo-mode)
+            (defun typo-mode-turn-off ()
+              (typo-mode -1))
+            (add-hook 'yaml-mode-hook #'turn-off-typo-mode)
+            (add-hook 'jinja2-mode-hook #'turn-off-typo-mode)))
 #+END_SRC
 
 ** avy