summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-08-25 23:06:51 -0500
committerCase Duckworth2021-08-25 23:06:51 -0500
commite3908376948547f19adc62cb5a81100b3797b66d (patch)
tree4208f581b3753dc5a48fbd0e103778a5ea1a4c08
parentFix weird `setup' bug with `:file-match' (diff)
downloademacs-e3908376948547f19adc62cb5a81100b3797b66d.tar.gz
emacs-e3908376948547f19adc62cb5a81100b3797b66d.zip
Fix typo bug when visiting non-file buffer
-rw-r--r--init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.el b/init.el index 4992104..f5b9e25 100644 --- a/init.el +++ b/init.el
@@ -1691,7 +1691,8 @@ successive invocations."
1691 ;; these certain buffers, so I won't even turn on the mode. 1691 ;; these certain buffers, so I won't even turn on the mode.
1692 "Start `typo-mode' UNLESS the buffer matches a predicate." 1692 "Start `typo-mode' UNLESS the buffer matches a predicate."
1693 (unless (or ; predicates here 1693 (unless (or ; predicates here
1694 (string-match-p "COMMIT_EDITMSG" buffer-file-name)) 1694 (string-match-p "COMMIT_EDITMSG"
1695 (or (buffer-name) "")))
1695 (typo-mode +1))))) 1696 (typo-mode +1)))))
1696 1697
1697(setup (:straight undo-fu) 1698(setup (:straight undo-fu)