summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2019-08-15 15:38:34 +0200
committerAlan Pearce2019-08-15 15:38:34 +0200
commit26fea31177f57e36fc9c9f06ab1aa1ae6d9aecaf (patch)
tree3394f3fb9aba6c58f59f67d33f7fbecc156cfede /emacs
parentc112b6a583ba96e5fedff97a4482242e3f66ccef (diff)
downloadnixfiles-26fea31177f57e36fc9c9f06ab1aa1ae6d9aecaf.tar.lz
nixfiles-26fea31177f57e36fc9c9f06ab1aa1ae6d9aecaf.tar.zst
nixfiles-26fea31177f57e36fc9c9f06ab1aa1ae6d9aecaf.zip
Emacs: configure eshell-toggle
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 7a23a224..1017be87 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -466,6 +466,9 @@ With two prefix arguments, write out the day and month name."
                                      (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 @@ With two prefix arguments, write out the day and month name."
 
 (my-leader-def
  "" nil
+ "`" #'eshell-toggle
  "h" '(:keymap ehelp-map :package ehelp)
  "w" '(:keymap evil-window-map :package evil)
  "x" '(:keymap ctl-x-map)