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