diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-03-08 00:54:16 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-03-08 00:54:16 +0000 |
commit | 2d8a20d34f59ab12210a43f7e082adac3a9887b2 (patch) | |
tree | 0737b5c9394b6a8da20d06ce5dfef6fe70040dd6 /Emacs/.config/emacs | |
parent | 19eec92024ce968680011487033b0ed4f0d7dce8 (diff) | |
download | dotfiles-2d8a20d34f59ab12210a43f7e082adac3a9887b2.tar.gz dotfiles-2d8a20d34f59ab12210a43f7e082adac3a9887b2.tar.bz2 dotfiles-2d8a20d34f59ab12210a43f7e082adac3a9887b2.zip |
(Emacs)+dashboard package
Instead of using the scratch buffer for the initial opening splash
screen (which, while incredibly minimalist, was not very informative
or functional) I installed and configured the 'dashboard' package
which provides a fancier splash screen for Emacs.
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index e2d8e88..23bb220 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -75,19 +75,16 @@ Set font size to 125 if no monitor is plugged in. (set-face-attribute 'default nil :height 115)) #+end_src -Turn off the startup buffer because I don't particularly care for it, -and write into the scratch buffer some nice information about Emacs. +Turn off the startup buffer because I prefer [[Dashboard]], and write into +the scratch buffer some nice information about Emacs. #+begin_src emacs-lisp (use-package startup :straight nil :defer t :init (setq inhibit-startup-screen t - initial-scratch-message (format ";; Emacs v%s\n" emacs-version) - ring-bell-function 'ignore) - (add-hook 'emacs-startup-hook - #'(lambda () (with-current-buffer "*scratch*" - (insert (format ";; Loaded in %s\n" (emacs-init-time))))))) + initial-scratch-message (format ";; Emacs v%s\n" emacs-version) + ring-bell-function 'ignore)) #+end_src * Emacs Mode-line Firstly, declare a variable for the separator between each module @@ -1077,6 +1074,33 @@ better. rg-buffer-name "*ripgrep*")) #+end_src * Applications +** Dashboard +Dashboard creates a custom dashboard for Emacs that replaces the +initial startup screen in default Emacs. +#+begin_src emacs-lisp +(use-package dashboard + :straight t + :init + (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")) + dashboard-banner-logo-title "Oreomacs" + dashboard-center-content nil + dashboard-set-init-info t + dashboard-startup-banner (no-littering-expand-etc-file-name "dashboard/logo2.png") + dashboard-set-footer t + dashboard-set-navigator t + dashboard-items '((projects . 5) + (recents . 5))) + :config + (dashboard-setup-startup-hook) + + (general-def + :states 'normal + :keymaps 'dashboard-mode-map + "r" #'dashboard-jump-to-recent-files + "p" #'dashboard-jump-to-projects + "}" #'dashboard-next-section + "{" #'dashboard-previous-section)) +#+end_src ** Mail *** Mail Preamble Mail is a funny thing; most people use it just for business or |