From 867e97a7c1bae699c5d043be26b44aff45fc68a0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Feb 2016 19:40:32 +0100 Subject: Emacs: Disable typo-mode in yaml and jinja modes --- tag-emacs/emacs.d/init.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1