Fix scratch buffer reverting mode on switch
This commit is contained in:
parent
2fd8909a35
commit
6d1ff1a2df
3
init.el
3
init.el
@ -244,7 +244,8 @@ init file, which initializes the package manager during compile time."
|
||||
"Open the scratch buffer, (re)creating it if not present."
|
||||
(interactive)
|
||||
(pop-to-buffer (get-buffer-create "*scratch*") '((display-buffer-reuse-window display-buffer-same-window)))
|
||||
(lisp-interaction-mode))
|
||||
(unless (derived-mode-p initial-major-mode)
|
||||
(funcall initial-major-mode)))
|
||||
|
||||
(defun user/scan-directory-for-projects ()
|
||||
"Prompt for a directory and then scan for any project roots within.
|
||||
|
Loading…
Reference in New Issue
Block a user