From a88dee85c5c6af9da9c819eb437e8e56b1ca4b4a Mon Sep 17 00:00:00 2001 From: cspark Date: Fri, 15 Mar 2024 16:37:29 +0000 Subject: [PATCH] New fix emacs not auto opening buffer when 1st argument is specifying a file to edit --- config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 14e4fa5..164797e 100644 --- a/config.org +++ b/config.org @@ -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