From eef2ffeeb23715ce96df84521f35513267a84b56 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Mon, 4 Feb 2019 23:50:16 -0500 Subject: [PATCH] Remove scratch buffer --- lain/.emacs.d/config.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lain/.emacs.d/config.org b/lain/.emacs.d/config.org index f6afcce..656d083 100644 --- a/lain/.emacs.d/config.org +++ b/lain/.emacs.d/config.org @@ -399,7 +399,10 @@ Show a cool custom buffer on startup :config (dashboard-setup-startup-hook) - (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) + (setq initial-buffer-choice (lambda () + (if (get-buffer "*scratch*") + (kill-buffer "*scratch*")) + (get-buffer "*dashboard*"))) :custom (dashboard-startup-banner 'logo)