Fix typo bug when visiting non-file buffer
This commit is contained in:
parent
76d52ffcab
commit
e390837694
3
init.el
3
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue