[Emacs] Better shortcut for terminals, remove reduntant ones

Shortcut `SPC o '' now launches `eshell-new' instead of just plain
`eshell', a new shortcut invokes `vterm', and the shortcut for
`helm-man-woman' is removed in favor of the default one in Spacemacs
This commit is contained in:
Lucien Cartier-Tilet 2021-04-17 12:48:30 +02:00
parent e53e019306
commit e6ea1aecbb
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

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