diff options
Diffstat (limited to 'lisp/type-break.el')
-rw-r--r-- | lisp/type-break.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/type-break.el b/lisp/type-break.el index 3a0b8b5adcc..0585e5bc61d 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el @@ -390,8 +390,9 @@ problems." (and (interactive-p) (message "Type Break mode is already enabled"))) (type-break-mode - (with-current-buffer (find-file-noselect type-break-file-name 'nowarn) - (setq buffer-save-without-query t)) + (when type-break-file-name + (with-current-buffer (find-file-noselect type-break-file-name 'nowarn) + (setq buffer-save-without-query t))) (or global-mode-string (setq global-mode-string '(""))) |