Tweak dashboard config
This commit is contained in:
parent
7034db873a
commit
f733280cc4
1 changed files with 24 additions and 25 deletions
|
@ -437,39 +437,38 @@ Add a dashboard on startup
|
|||
:after all-the-icons
|
||||
:hook (dashboard-mode . (lambda ()
|
||||
(setq show-trailing-whitespace nil)))
|
||||
:custom
|
||||
(dashboard-set-navigator t)
|
||||
(dashboard-center-content t)
|
||||
(dashbaord-set-file-icons t)
|
||||
(dashboard-set-heading-icons t)
|
||||
(dashboard-set-init-info t)
|
||||
(dashboard-image-banner-max-height 250)
|
||||
(dashboard-banner-logo-title "Bûter, brea en griene tsiis, wa dat net sizze kin is gjin oprjochte Fries.")
|
||||
(dashboard-startup-banner (concat user-emacs-directory "images/ue-colorful.png"))
|
||||
:config
|
||||
(dashboard-setup-startup-hook)
|
||||
(setq dashboard-footer-icon (all-the-icons-octicon "dashboard"
|
||||
:height 1.1
|
||||
:v-adjust -0.05
|
||||
:face 'font-lock-keyword-face))
|
||||
(setq dashboard-set-navigator t
|
||||
dashboard-center-content t
|
||||
dashboard-set-file-icons t
|
||||
dashboard-set-heading-icons t
|
||||
dashboard-set-init-info t
|
||||
dashboard-image-banner-max-height 250
|
||||
dashboard-banner-logo-title "Bûter, brea en griene tsiis, wa dat net sizze kin is gjin oprjochte Fries."
|
||||
dashboard-startup-banner (concat user-emacs-directory "images/ue-colorful.png")
|
||||
dashboard-footer-icon (all-the-icons-octicon "dashboard"
|
||||
:height 1.1
|
||||
:v-adjust -0.05
|
||||
:face 'font-lock-keyword-face))
|
||||
(setq dashboard-navigator-buttons
|
||||
`(((,(all-the-icons-octicon "search" :height 0.9 :v-adjust -0.1)
|
||||
" Find file" nil
|
||||
(lambda (&rest _) (find-file)) nil "" " C-x C-f"))
|
||||
((,(all-the-icons-octicon "file-directory" :height 1.0 :v-adjust -0.1)
|
||||
" Open project" nil
|
||||
(lambda (&rest _) (projectile-switch-project)) nil "" " C-c p p"))
|
||||
((,(all-the-icons-octicon "three-bars" :height 1.1 :v-adjust -0.1)
|
||||
" File explorer" nil
|
||||
(lambda (&rest _) (projectile-dired)) nil "" " C-c p D"))
|
||||
((,(all-the-icons-octicon "settings" :height 0.9 :v-adjust -0.1)
|
||||
" Open settings" nil
|
||||
(lambda (&rest _) (find-config)) nil "" " C-c C "))))
|
||||
" Find file" nil
|
||||
(lambda (&rest _) (find-file)) nil "" " C-x C-f"))
|
||||
((,(all-the-icons-octicon "file-directory" :height 1.0 :v-adjust -0.1)
|
||||
" Open project" nil
|
||||
(lambda (&rest _) (projectile-switch-project)) nil "" " C-c p p"))
|
||||
((,(all-the-icons-octicon "three-bars" :height 1.1 :v-adjust -0.1)
|
||||
" File explorer" nil
|
||||
(lambda (&rest _) (projectile-dired)) nil "" " C-c p D"))
|
||||
((,(all-the-icons-octicon "settings" :height 0.9 :v-adjust -0.1)
|
||||
" Open settings" nil
|
||||
(lambda (&rest _) (find-config)) nil "" " C-c C "))))
|
||||
(setq
|
||||
dashboard-projects-backend 'projectile
|
||||
dashboard-items '((recents . 5)
|
||||
(projects . 5)
|
||||
(registers . 5)))
|
||||
(dashboard-setup-startup-hook)
|
||||
;; Also show dashboard on new emacsclient window
|
||||
(setq initial-buffer-choice (lambda ()
|
||||
(get-buffer-create "*dashboard*")))
|
||||
|
|
Loading…
Reference in a new issue