diff options
-rw-r--r-- | config.org | 9 |
1 files 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 | |||
1046 | *** Typo mode | 1046 | *** Typo mode |
1047 | 1047 | ||
1048 | #+BEGIN_SRC emacs-lisp | 1048 | #+BEGIN_SRC emacs-lisp |
1049 | (straight-use-package 'typo) | 1049 | (straight-use-package 'typo) |
1050 | 1050 | ||
1051 | (add-hook 'text-mode-hook #'typo-mode) | 1051 | (add-hook 'text-mode-hook #'typo-mode) |
1052 | |||
1053 | ;; Disable `typo-mode' when inside an Org source block | ||
1054 | (with-eval-after-load 'typo | ||
1055 | (add-to-list 'typo-disable-electricity-functions | ||
1056 | #'org-in-src-block-p)) | ||
1052 | #+END_SRC | 1057 | #+END_SRC |
1053 | 1058 | ||
1054 | ** Word count | 1059 | ** Word count |