From e0d8e0c268935d9836bc3516222b3d4306899095 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 13 Jul 2025 18:38:35 -0500 Subject: consolidate dashboard keybinding to f4 only --- modules/dashboard-config.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el index 45be1a55..c6c32cc6 100644 --- a/modules/dashboard-config.el +++ b/modules/dashboard-config.el @@ -53,18 +53,21 @@ (defun cj/display-dashboard () "Display dashboard, create if it doesn't exist." (interactive) - (dired-sidebar-hide-sidebar) ;; hide dired-sidebar if displaying - (get-buffer-create "*dashboard*") - (pop-to-buffer "*dashboard*") - (delete-other-windows)) -(global-set-key (kbd "") 'cj/display-dashboard) + (dired-sidebar-hide-sidebar) + (if (get-buffer "*dashboard*") + (progn + (pop-to-buffer "*dashboard*") + (delete-other-windows)) + (dashboard-open))) ;; --------------------------------- Dashboard --------------------------------- ;; a useful startup screen for Emacs (use-package dashboard :demand t ;; needed to startup quickly - :bind ("" . dashboard-open) + :init + (global-unset-key (kbd "")) + :bind ("" . cj/display-dashboard) :custom (dashboard-projects-backend 'projectile) -- cgit v1.2.3