summaryrefslogtreecommitdiff
path: root/early-init.el
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-06-24 21:37:14 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-06-24 21:37:14 -0400
commit70fb19b96b30c27e4162d1419737fd57c825fab9 (patch)
tree7ec2e91f37d271202fd9aa915b77247c932ad184 /early-init.el
parenta8000da62a82ae9f7270397e03ec59d2e0646a3c (diff)
downloademacs.d-70fb19b96b30c27e4162d1419737fd57c825fab9.tar.gz
try to visit symlink for initial-buffer
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el
index de9661e..683dbd9 100644
--- a/early-init.el
+++ b/early-init.el
@@ -5,6 +5,13 @@
custom-file (file-name-concat user-emacs-directory "custom.el")
custom-theme-directory (file-name-concat user-emacs-directory "themes/")
debugger 'edebug
+ initial-buffer-choice (lambda ()
+ (let ((initial-file (file-name-concat
+ user-emacs-directory
+ "initial-buffer")))
+ (if (file-exists-p initial-file)
+ (find-file initial-file)
+ (get-buffer-create "*scratch*"))))
enable-local-variables :safe
inferior-lisp-program "sbcl"
inhibit-splash-screen t