diff options
author | Case Duckworth | 2021-08-25 23:06:51 -0500 |
---|---|---|
committer | Case Duckworth | 2021-08-25 23:06:51 -0500 |
commit | e3908376948547f19adc62cb5a81100b3797b66d (patch) | |
tree | 4208f581b3753dc5a48fbd0e103778a5ea1a4c08 | |
parent | Fix weird `setup' bug with `:file-match' (diff) | |
download | emacs-e3908376948547f19adc62cb5a81100b3797b66d.tar.gz emacs-e3908376948547f19adc62cb5a81100b3797b66d.zip |
Fix typo bug when visiting non-file buffer
-rw-r--r-- | init.el | 3 |
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) |