1

Fix scratch buffer reverting mode on switch

This commit is contained in:
Jessie Hildebrandt 2022-12-30 14:10:17 -05:00
parent 2fd8909a35
commit 6d1ff1a2df

View File

@ -244,7 +244,8 @@ init file, which initializes the package manager during compile time."
"Open the scratch buffer, (re)creating it if not present." "Open the scratch buffer, (re)creating it if not present."
(interactive) (interactive)
(pop-to-buffer (get-buffer-create "*scratch*") '((display-buffer-reuse-window display-buffer-same-window))) (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 () (defun user/scan-directory-for-projects ()
"Prompt for a directory and then scan for any project roots within. "Prompt for a directory and then scan for any project roots within.