From a0a24b7c04fe9e4c434b9873eb4498f97c2ccd63 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 2 Jan 2021 17:36:57 -0600 Subject: Disable typo-mode when in an org source block --- config.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index ab7ddea..792c36d 100644 --- a/config.org +++ b/config.org @@ -1046,9 +1046,14 @@ This has to be done /before/ loading the package. It's included in =visual-fill *** Typo mode #+BEGIN_SRC emacs-lisp -(straight-use-package 'typo) + (straight-use-package 'typo) -(add-hook 'text-mode-hook #'typo-mode) + (add-hook 'text-mode-hook #'typo-mode) + + ;; Disable `typo-mode' when inside an Org source block + (with-eval-after-load 'typo + (add-to-list 'typo-disable-electricity-functions + #'org-in-src-block-p)) #+END_SRC ** Word count -- cgit 1.4.1-21-gabe81