From e8121b452f08fe6ffbe5ce38d454365e6a86e307 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Tue, 5 Jan 2021 16:43:45 +0100 Subject: [PATCH] [Emacs] Add shortcut to spawn new Eshell buffer --- org/config/emacs.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index 1f353a7..6fc3d69 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -3302,13 +3302,14 @@ As this is a new category, let’s declare its prefix: (spacemacs/declare-prefix "oa" "applications") #+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 (spacemacs/set-leader-keys "oa'" 'eshell "oac" 'calc "oaC" 'calendar "oae" 'eww + "oan" 'eshell-new "oaw" 'helm-man-woman "oaW" 'wttrin) #+END_SRC