diff options
author | Case Duckworth | 2021-01-02 17:36:57 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-02 17:36:57 -0600 |
commit | a0a24b7c04fe9e4c434b9873eb4498f97c2ccd63 (patch) | |
tree | 9ed493683bed67ca457b01085c8d181c5c3e18b2 | |
parent | Whitespace (diff) | |
download | emacs-a0a24b7c04fe9e4c434b9873eb4498f97c2ccd63.tar.gz emacs-a0a24b7c04fe9e4c434b9873eb4498f97c2ccd63.zip |
Disable typo-mode when in an org source block
-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 |