all repos — nixfiles @ 6ce4aa99a7ea9a7996b971e38c83a56e4bab82af

System and user configuration, managed by nix and home-manager

Emacs: add function and keybinding for opening eshell in the current directory

Alan Pearce
commit

6ce4aa99a7ea9a7996b971e38c83a56e4bab82af

parent

954a691139a1756af64e2db7091c6ea66cb92fe9

1 file changed, 7 insertions(+), 0 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -743,6 +743,13 @@ eshell-review-quick-commands nil
eshell-smart-space-goes-to-end t) (eshell-smart-initialize))))) +(defun eshell-goto-current-dir (&optional arg) + (interactive "P") + (let ((dir default-directory)) + (eshell arg) + (eshell/cd dir))) +(bind-key "C-c S" #'eshell-goto-current-dir) + (use-package shell :defer t :config (define-key shell-mode-map