all repos — archive/dotfiles @ 26fea31177f57e36fc9c9f06ab1aa1ae6d9aecaf

Superseded by nixfiles

Emacs: configure eshell-toggle
Alan Pearce alan@alanpearce.eu
Thu, 15 Aug 2019 15:38:34 +0200
commit

26fea31177f57e36fc9c9f06ab1aa1ae6d9aecaf

parent

c112b6a583ba96e5fedff97a4482242e3f66ccef

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -466,6 +466,9 @@ :custom ((eshell-prompt-function (lambda ()                                      (concat (eshell/pwd) "\n$ ")))
            (eshell-prompt-regexp "^[$][[:blank:]]")))
 
+(use-package eshell-toggle
+  :custom ((eshell-toggle-use-projectile-root t)))
+
 (use-package esh-autosuggest
   :ghook ('eshell-mode-hook))
 
@@ -696,6 +699,7 @@ ;;; Take me to my leader 
 (my-leader-def
  "" nil
+ "`" #'eshell-toggle
  "h" '(:keymap ehelp-map :package ehelp)
  "w" '(:keymap evil-window-map :package evil)
  "x" '(:keymap ctl-x-map)