[Emacs] Add shortcut to spawn new Eshell buffer
This commit is contained in:
parent
3ff58ad913
commit
e8121b452f
@ -3302,13 +3302,14 @@ As this is a new category, let’s declare its prefix:
|
|||||||
(spacemacs/declare-prefix "oa" "applications")
|
(spacemacs/declare-prefix "oa" "applications")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Now, let’s 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, let’s 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
|
#+BEGIN_SRC emacs-lisp
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"oa'" 'eshell
|
"oa'" 'eshell
|
||||||
"oac" 'calc
|
"oac" 'calc
|
||||||
"oaC" 'calendar
|
"oaC" 'calendar
|
||||||
"oae" 'eww
|
"oae" 'eww
|
||||||
|
"oan" 'eshell-new
|
||||||
"oaw" 'helm-man-woman
|
"oaw" 'helm-man-woman
|
||||||
"oaW" 'wttrin)
|
"oaW" 'wttrin)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Loading…
Reference in New Issue
Block a user