branch: elpa-release/hyperdrive commit ba0e27df4a6acbd1c24d10ac1c4376611449cfee Author: Joseph Turner <jos...@ushin.org> Commit: Joseph Turner <jos...@ushin.org>
Fix: (h/open) Set major mode when creating new file Previously, the major mode was only set after a file was saved for the first time. --- hyperdrive-lib.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el index a05e0c0d48..bb6017f692 100644 --- a/hyperdrive-lib.el +++ b/hyperdrive-lib.el @@ -731,7 +731,8 @@ echo area when the request for the file is made." (h/message "Entry does not exist! %s" (h//format-entry entry))) ;; Make and switch to new buffer. - (switch-to-buffer (h//get-buffer-create entry)))) + (switch-to-buffer (h//get-buffer-create entry)) + (h//set-auto-mode))) (t ;; Hyperdrive entry is not writable: prompt for action. (not-found-action))))