New fix emacs not auto opening buffer when 1st argument is specifying a file to edit

This commit is contained in:
Curt Spark 2024-03-15 16:37:29 +00:00
parent 941168f490
commit a88dee85c5
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,8 @@ Install the package, enable it and ensure that it always is installed:
(dashboard-setup-startup-hook))
;; Fixes emacs not auto opening buffer when 1st argument is specifying a file to edit
(setq initial-buffer-choice (lambda () (or (get-buffer "*dashboard*") (get-buffer (nth 1 command-line-args)))))
(if (< (length command-line-args) 2)
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))))
#+END_SRC
**** Emacs Dashboard Configuration