[Emacs] Add shortcut to spawn new Eshell buffer

This commit is contained in:
Lucien Cartier-Tilet 2021-01-05 16:43:45 +01:00
parent 3ff58ad913
commit e8121b452f
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -3302,13 +3302,14 @@ As this is a new category, lets declare its prefix:
(spacemacs/declare-prefix "oa" "applications")
#+END_SRC
Now, lets also declare the keybindings in this category. ~oac~ will invoke Emacs calculator, while ~oac~ invokes the calendar, ~oae~ invokes the Eww web browser, ~oaw~ invokes ~woman~ (actually ~helm-man-woman~), and ~oaW~ invokes the weather forecast. Lastly, the apostrophe in ~oa'~ will invoke Eshell directly, without any popup window as with ~,'~.
Now, lets also declare the keybindings in this category. ~oac~ will invoke Emacs calculator, while ~oac~ invokes the calendar, ~oae~ invokes the Eww web browser, ~oaw~ invokes ~woman~ (actually ~helm-man-woman~), and ~oaW~ invokes the weather forecast. Lastly, the apostrophe in ~oa'~ will invoke Eshell directly, without any popup window as with ~,'~ while ~oan~ will open a new eshell buffer if another one already exists.
#+BEGIN_SRC emacs-lisp
(spacemacs/set-leader-keys
"oa'" 'eshell
"oac" 'calc
"oaC" 'calendar
"oae" 'eww
"oan" 'eshell-new
"oaw" 'helm-man-woman
"oaW" 'wttrin)
#+END_SRC