0

I'm using emacs-dashboard as my launcher. I'd love to set up a dashboard-navigator-button for launching C-u M-x shell which is usually the first thing I do in emacs.

I see logic for arbitrary navigators here:

;; Format: "(icon title help action face prefix suffix)"
(setq dashboard-navigator-buttons
      `(;; line1
        ((,(all-the-icons-octicon "mark-github" :height 1.1 :v-adjust 0.0)
         "Homepage"
         "Browse homepage"
         (lambda (&rest _) (browse-url "homepage")))
        ("★" "Star" "Show stars" (lambda (&rest _) (show-stars)) warning)
        ("?" "" "?/h" #'show-help nil "<" ">"))
         ;; line 2
        ((,(all-the-icons-faicon "linkedin" :height 1.1 :v-adjust 0.0)
          "Linkedin"
          ""
          (lambda (&rest _) (browse-url "homepage")))
         ("⚑" nil "Show flags" (lambda (&rest _) (message "flag")) error))))

But I already have the following in my dashboard-config, and I'm trying not to completely rewrite the defaults:

(use-package dashboard
  :init
  (setq dashboard-items '((recents  . 5)
                        (bookmarks . 5)
                        (projects . 5)
                        (agenda . 5)
                        (registers . 5)))
  (setq dashboard-set-heading-icons t)
  (setq dashboard-set-file-icons t)  
  :ensure t
  :config
  (dashboard-setup-startup-hook))

How would I add a navigator for launching a shell, with a shortcut like "e?"

Mittenchops
  • 289
  • 1
  • 8

0 Answers0