fix and change bindings and icons
This commit is contained in:
@@ -181,6 +181,7 @@ DISPLAY-START: `integer', e.g. 3820"
|
||||
|
||||
(use-package all-the-icons
|
||||
:defer t
|
||||
:if (display-graphic-p)
|
||||
:config
|
||||
(when (and (not (my-font-installed-p "all-the-icons"))
|
||||
(window-system))
|
||||
@@ -197,32 +198,59 @@ DISPLAY-START: `integer', e.g. 3820"
|
||||
(setq dashboard-set-file-icons t)
|
||||
(setq dashboard-set-navigator t)
|
||||
(setq dashboard-startup-banner 'logo)
|
||||
(setq dashboard-navigator-buttons
|
||||
;; list of lines having list of elements
|
||||
;; element: (icon title help action face prefix suffix)
|
||||
`(;; 1st line custom views
|
||||
(("" "Custom Views:" "custom views" nil default "" "")
|
||||
(,(all-the-icons-fileicon "elisp" :height 1.0 :v-adjust -0.1) "ELisp" "my-view-elisp" (lambda (&rest _) (my-tab-view-elisp)) )
|
||||
(,(all-the-icons-alltheicon "python" :height 1.0 :v-adjust 0.0) "Python" "my-view-python" (lambda (&rest _) (my-tab-view-python)) )
|
||||
(,(all-the-icons-alltheicon "script" :height 1.0 :v-adjust 0.0) "Shell" "my-view-shell" (lambda (&rest _) (my-tab-view-shell)) )
|
||||
(,(all-the-icons-octicon "file-media" :height 1.0 :v-adjust 0.0) "Gnuplot" "my-view-gnuplot" (lambda (&rest _) (my-tab-view-gnuplot)) )
|
||||
(,(all-the-icons-octicon "file-pdf" :height 1.0 :v-adjust 0.0) "Org PDF" "my-view-org-pdf" (lambda (&rest _) (my-tab-view-org-pdf)) ))
|
||||
;; 2nd line major modes 1st part
|
||||
(("" "Major Modes:" "major modes" nil default "" "")
|
||||
("" "Deft" "deft" (lambda (&rest _) (deft)) )
|
||||
("" "EShell" "eshell-mode" (lambda (&rest _) (eshell)) )
|
||||
("" "Magit" "magit" (lambda (&rest _) (magit)) )
|
||||
(,(all-the-icons-octicon "mail" :height 1.0 :v-adjust 0.0) "Mu4e" "mu4e" (lambda (&rest _) (mu4e)) )
|
||||
(,(all-the-icons-octicon "mail" :height 1.0 :v-adjust 0.0) "Notmuch" "notmuch" (lambda (&rest _) (notmuch)) )
|
||||
("" "Org-Brain" "org-brain-visualize" (lambda (&rest _) (call-interactively 'org-brain-visualize)) ))
|
||||
;; 3rd line major modes 2nd part
|
||||
(("" "Org-Drill" "org-drill" (lambda (&rest _) (org-drill)) )
|
||||
("" "Powershell" "powershell" (lambda (&rest _) (powershell)) )
|
||||
("" "Shell" "shell" (lambda (&rest _) (shell)) )
|
||||
("" "Treemacs" "treemacs" (lambda (&rest _) (treemacs)) ))
|
||||
;; 4th line infos
|
||||
((,(all-the-icons-material "help_outline" :height 1.1 :v-adjust -0.15) "Help" "?/h" (lambda (&rest _) (describe-mode)) nil)
|
||||
(,(all-the-icons-material "refresh" :height 1.1 :v-adjust -0.15) "Restart" "restart-emacs" (lambda (&rest _) (restart-emacs)) nil))))
|
||||
(if (display-graphic-p)
|
||||
(setq dashboard-navigator-buttons
|
||||
;; list of lines having list of elements
|
||||
;; element: (icon title help action face prefix suffix)
|
||||
`(;; 1st line custom views
|
||||
(("" "Custom Views:" "custom views" nil default "" "")
|
||||
(,(all-the-icons-fileicon "elisp" :height 1.0 :v-adjust -0.1) "ELisp" "my-view-elisp" (lambda (&rest _) (my-tab-view-elisp)) )
|
||||
(,(all-the-icons-alltheicon "python" :height 1.0 :v-adjust 0.0) "Python" "my-view-python" (lambda (&rest _) (my-tab-view-python)) )
|
||||
(,(all-the-icons-alltheicon "script" :height 1.0 :v-adjust 0.0) "Shell" "my-view-shell" (lambda (&rest _) (my-tab-view-shell)) )
|
||||
(,(all-the-icons-octicon "file-media" :height 1.0 :v-adjust 0.0) "Gnuplot" "my-view-gnuplot" (lambda (&rest _) (my-tab-view-gnuplot)) )
|
||||
(,(all-the-icons-octicon "file-pdf" :height 1.0 :v-adjust 0.0) "Org PDF" "my-view-org-pdf" (lambda (&rest _) (my-tab-view-org-pdf)) ))
|
||||
;; 2nd line major modes 1st part
|
||||
(("" "Major Modes:" "major modes" nil default "" "")
|
||||
("" "Deft" "deft" (lambda (&rest _) (deft)) )
|
||||
("" "EShell" "eshell-mode" (lambda (&rest _) (eshell)) )
|
||||
("" "Magit" "magit" (lambda (&rest _) (magit)) )
|
||||
(,(all-the-icons-octicon "mail" :height 1.0 :v-adjust 0.0) "Mu4e" "mu4e" (lambda (&rest _) (mu4e)) )
|
||||
(,(all-the-icons-octicon "mail" :height 1.0 :v-adjust 0.0) "Notmuch" "notmuch" (lambda (&rest _) (notmuch)) )
|
||||
("" "Org-Brain" "org-brain-visualize" (lambda (&rest _) (call-interactively 'org-brain-visualize)) ))
|
||||
;; 3rd line major modes 2nd part
|
||||
(("" "Org-Drill" "org-drill" (lambda (&rest _) (org-drill)) )
|
||||
("" "Powershell" "powershell" (lambda (&rest _) (powershell)) )
|
||||
("" "Shell" "shell" (lambda (&rest _) (shell)) )
|
||||
("" "Treemacs" "treemacs" (lambda (&rest _) (treemacs)) ))
|
||||
;; 4th line infos
|
||||
((,(all-the-icons-material "help_outline" :height 1.1 :v-adjust -0.15) "Help" "?/h" (lambda (&rest _) (describe-mode)) nil)
|
||||
(,(all-the-icons-material "refresh" :height 1.1 :v-adjust -0.15) "Restart" "restart-emacs" (lambda (&rest _) (restart-emacs)) nil))))
|
||||
(setq dashboard-navigator-buttons
|
||||
;; list of lines having list of elements
|
||||
;; element: (icon title help action face prefix suffix)
|
||||
`(;; 1st line custom views
|
||||
(("" "Custom Views:" "custom views" nil default "" "")
|
||||
("" "ELisp" "my-view-elisp" (lambda (&rest _) (my-tab-view-elisp)) )
|
||||
("" "Python" "my-view-python" (lambda (&rest _) (my-tab-view-python)) )
|
||||
("" "Shell" "my-view-shell" (lambda (&rest _) (my-tab-view-shell)) )
|
||||
("" "Gnuplot" "my-view-gnuplot" (lambda (&rest _) (my-tab-view-gnuplot)) )
|
||||
("" "Org PDF" "my-view-org-pdf" (lambda (&rest _) (my-tab-view-org-pdf)) ))
|
||||
;; 2nd line major modes 1st part
|
||||
(("" "Major Modes:" "major modes" nil default "" "")
|
||||
("" "Deft" "deft" (lambda (&rest _) (deft)) )
|
||||
("" "EShell" "eshell-mode" (lambda (&rest _) (eshell)) )
|
||||
("" "Magit" "magit" (lambda (&rest _) (magit)) )
|
||||
("" "Mu4e" "mu4e" (lambda (&rest _) (mu4e)) )
|
||||
("" "Notmuch" "notmuch" (lambda (&rest _) (notmuch)) )
|
||||
("" "Org-Brain" "org-brain-visualize" (lambda (&rest _) (call-interactively 'org-brain-visualize)) ))
|
||||
;; 3rd line major modes 2nd part
|
||||
(("" "Org-Drill" "org-drill" (lambda (&rest _) (org-drill)) )
|
||||
("" "Powershell" "powershell" (lambda (&rest _) (powershell)) )
|
||||
("" "Shell" "shell" (lambda (&rest _) (shell)) )
|
||||
("" "Treemacs" "treemacs" (lambda (&rest _) (treemacs)) ))
|
||||
;; 4th line infos
|
||||
(("" "Help" "?/h" (lambda (&rest _) (describe-mode)) nil)
|
||||
("" "Restart" "restart-emacs" (lambda (&rest _) (restart-emacs)) nil)))))
|
||||
(setq dashboard-items '((recents . 10)
|
||||
(bookmarks . 5)
|
||||
;; (projects . 5)
|
||||
|
||||
Reference in New Issue
Block a user