eshell changes

This commit is contained in:
Chris Cochrun 2022-09-29 10:57:22 -05:00
parent 2ac9e2a9b3
commit 85a2ef30ea
2 changed files with 27 additions and 3 deletions

View file

@ -1980,7 +1980,7 @@ I've been transitioning more of my OS to NixOS. Let's get =nix-mode= working.
*** LSP
LSP is useful...
#+begin_src emacs-lisp :tangle no
#+begin_src emacs-lisp :tangle yes
(use-package lsp-mode
:commands (lsp lsp-deferred)
:custom
@ -2755,11 +2755,22 @@ Let's add our own eshell prompt. and set the password cache to a significantly h
("nupg" "upgrade-nix")
("nupd" "update-nix")))
(defun chris/eshell-new()
"Open a new eshell buffer"
(interactive)
(eshell 'N))
(defun chris/eshell-switch()
"interactively switch between eshell buffers"
(interactive)
(consult-buffer))
:general
(chris/leader-keys
:states 'normal
:keymaps 'override
"oe" 'eshell)
"oe" 'chris/eshell-new
"be" 'eshell)
(general-def '(normal insert) eshell-mode-map
"C-d" 'kill-buffer-and-window))
#+end_src