Fix typo bug when visiting non-file buffer

This commit is contained in:
Case Duckworth 2021-08-25 23:06:51 -05:00
parent 76d52ffcab
commit e390837694
1 changed files with 2 additions and 1 deletions

View File

@ -1691,7 +1691,8 @@ successive invocations."
;; these certain buffers, so I won't even turn on the mode.
"Start `typo-mode' UNLESS the buffer matches a predicate."
(unless (or ; predicates here
(string-match-p "COMMIT_EDITMSG" buffer-file-name))
(string-match-p "COMMIT_EDITMSG"
(or (buffer-name) "")))
(typo-mode +1)))))
(setup (:straight undo-fu)