From 91bb3d15eb9771c8e8af955394b50c1707f4f78a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 18 Oct 2023 05:35:25 +0100 Subject: [PATCH] Customise DOOM dashboard Change icons to use material design --- home/emacs/doom/config.el | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/home/emacs/doom/config.el b/home/emacs/doom/config.el index d6a3e8d2..b2e3d740 100644 --- a/home/emacs/doom/config.el +++ b/home/emacs/doom/config.el @@ -30,6 +30,36 @@ (set-frame-parameter nil 'alpha-background 80) (add-to-list 'default-frame-alist '(alpha-background . 80)) +;; DOOM Dashboard customisation +(setq +doom-dashboard-menu-sections + '(("Recently opened files" + :icon (nerd-icons-mdicon "nf-md-file_document" :face 'doom-dashboard-menu-title) + :action recentf-open-files) + ("Reload last session" + :icon (nerd-icons-mdicon "nf-md-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)))) + :action doom/quickload-session) + ("Open org-agenda" + :icon (nerd-icons-mdicon "nf-md-calendar" :face 'doom-dashboard-menu-title) + :when (fboundp 'org-agenda) + :action org-agenda) + ("Open project" + :icon (nerd-icons-mdicon "nf-md-briefcase" :face 'doom-dashboard-menu-title) + :action projectile-switch-project) + ("Jump to bookmark" + :icon (nerd-icons-mdicon "nf-md-bookmark" :face 'doom-dashboard-menu-title) + :action bookmark-jump) + ("Open private configuration" + :icon (nerd-icons-mdicon "nf-md-tools" :face 'doom-dashboard-menu-title) + :when (file-directory-p doom-user-dir) + :action doom/open-private-config) + ("Open documentation" + :icon (nerd-icons-mdicon "nf-md-book" :face 'doom-dashboard-menu-title) + :action doom/help))) + (after! gnus (setq gnus-select-method '(nntp "news.gnus.org")))