diff options
-rw-r--r-- | init.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/init.el b/init.el index 31fc0be..1a85a20 100644 --- a/init.el +++ b/init.el | |||
@@ -1404,7 +1404,12 @@ successive invocations." | |||
1404 | (add-hook 'ssh-config-mode-hook #'turn-on-font-lock)) | 1404 | (add-hook 'ssh-config-mode-hook #'turn-on-font-lock)) |
1405 | 1405 | ||
1406 | (setup (:straight typo) | 1406 | (setup (:straight typo) |
1407 | (:hook-into text-mode)) | 1407 | (add-hook 'text-mode-hook |
1408 | (defun text-mode@typo-unless () | ||
1409 | "Start `typo-mode' UNLESS the buffer matches a predicate." | ||
1410 | (unless (or ; predicates here | ||
1411 | (string-match-p "COMMIT_EDITMSG" buffer-file-name)) | ||
1412 | (typo-mode +1))))) | ||
1408 | 1413 | ||
1409 | (setup (:straight undo-fu) | 1414 | (setup (:straight undo-fu) |
1410 | (:global "C-/" undo-fu-only-undo | 1415 | (:global "C-/" undo-fu-only-undo |