From e3908376948547f19adc62cb5a81100b3797b66d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 25 Aug 2021 23:06:51 -0500 Subject: Fix typo bug when visiting non-file buffer --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 4992104..f5b9e25 100644 --- a/init.el +++ b/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) -- cgit 1.4.1-21-gabe81