From 6aa9ebae64f3d7ba0cc6c2930da6a104088060fb Mon Sep 17 00:00:00 2001 From: Jeetaditya Chatterjee Date: Thu, 17 Aug 2023 12:26:37 +0100 Subject: [PATCH] tweak(doom-dashboard): recentf now top menu section This makes the top action one that is harmless as to prevent accidental clobbering of current workspaces --- modules/ui/doom-dashboard/config.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index efc411e83..1ba86334a 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -46,21 +46,21 @@ Possible values: nil `default-directory' will never change") (defvar +doom-dashboard-menu-sections - '(("Reload last session" + '(("Recently opened files" + :icon (all-the-icons-octicon "file-text" :face 'doom-dashboard-menu-title) + :face (:inherit (doom-dashboard-menu-title bold)) + :action recentf-open-files) + ("Reload last session" :icon (all-the-icons-octicon "history" :face 'doom-dashboard-menu-title) :when (cond ((modulep! :ui workspaces) (file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir))) ((require 'desktop nil t) (file-exists-p (desktop-full-file-name)))) - :face (:inherit (doom-dashboard-menu-title bold)) :action doom/quickload-session) ("Open org-agenda" :icon (all-the-icons-octicon "calendar" :face 'doom-dashboard-menu-title) :when (fboundp 'org-agenda) :action org-agenda) - ("Recently opened files" - :icon (all-the-icons-octicon "file-text" :face 'doom-dashboard-menu-title) - :action recentf-open-files) ("Open project" :icon (all-the-icons-octicon "briefcase" :face 'doom-dashboard-menu-title) :action projectile-switch-project)