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
LSP is useful... LSP is useful...
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle yes
(use-package lsp-mode (use-package lsp-mode
:commands (lsp lsp-deferred) :commands (lsp lsp-deferred)
:custom :custom
@ -2755,11 +2755,22 @@ Let's add our own eshell prompt. and set the password cache to a significantly h
("nupg" "upgrade-nix") ("nupg" "upgrade-nix")
("nupd" "update-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 :general
(chris/leader-keys (chris/leader-keys
:states 'normal :states 'normal
:keymaps 'override :keymaps 'override
"oe" 'eshell) "oe" 'chris/eshell-new
"be" 'eshell)
(general-def '(normal insert) eshell-mode-map (general-def '(normal insert) eshell-mode-map
"C-d" 'kill-buffer-and-window)) "C-d" 'kill-buffer-and-window))
#+end_src #+end_src

15
init.el
View file

@ -1927,11 +1927,22 @@ targets."
("nupg" "upgrade-nix") ("nupg" "upgrade-nix")
("nupd" "update-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 :general
(chris/leader-keys (chris/leader-keys
:states 'normal :states 'normal
:keymaps 'override :keymaps 'override
"oe" 'eshell) "oe" 'chris/eshell-new
"be" 'eshell)
(general-def '(normal insert) eshell-mode-map (general-def '(normal insert) eshell-mode-map
"C-d" 'kill-buffer-and-window)) "C-d" 'kill-buffer-and-window))
@ -2335,6 +2346,8 @@ interfere with the default `bongo-playlist-buffer'."
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(pdf-misc-print-program "/usr/bin/lpr")
'(pdf-misc-print-program-args '("-o media=Letter" "-o fitplot"))
'(safe-local-variable-values '(safe-local-variable-values
'((aggressive-indent-mode) '((aggressive-indent-mode)
(projectile-project-run-cmd . "./build/bin/presenter") (projectile-project-run-cmd . "./build/bin/presenter")