doom-guess-mode-h: affect interactively saved files
A half revert of 9b003e051
.
This commit is contained in:
parent
c6121b98b5
commit
63c41fefcb
1 changed files with 1 additions and 4 deletions
|
@ -82,10 +82,7 @@ possible."
|
|||
"Guess mode when saving a file in `fundamental-mode'."
|
||||
(and (eq major-mode 'fundamental-mode)
|
||||
(buffer-file-name (buffer-base-buffer))
|
||||
(>= (buffer-size) 2)
|
||||
(save-restriction
|
||||
(widen)
|
||||
(string= "#!" (buffer-substring (point-min) (+ 2 (point-min)))))
|
||||
(eq (current-buffer) (window-buffer (selected-window))) ; only visible buffers
|
||||
(set-auto-mode))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue