[Emacs] Add shortcut to eshell

This commit is contained in:
Lucien Cartier-Tilet 2020-12-02 17:29:37 +01:00
parent 312a7ebf2d
commit bdc4e543cf
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -2675,9 +2675,10 @@ As this is a new category, lets declare its prefix:
(spacemacs/declare-prefix "oa" "applications") (spacemacs/declare-prefix "oa" "applications")
#+END_SRC #+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. 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 ~,'~.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(spacemacs/set-leader-keys (spacemacs/set-leader-keys
"oa'" 'eshell
"oac" 'calc "oac" 'calc
"oaC" 'calendar "oaC" 'calendar
"oae" 'eww "oae" 'eww