eshell changes
This commit is contained in:
parent
2ac9e2a9b3
commit
85a2ef30ea
15
README.org
15
README.org
|
@ -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
|
||||
|
|
15
init.el
15
init.el
|
@ -1927,11 +1927,22 @@ targets."
|
|||
("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))
|
||||
|
||||
|
@ -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.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; 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
|
||||
'((aggressive-indent-mode)
|
||||
(projectile-project-run-cmd . "./build/bin/presenter")
|
||||
|
|
Loading…
Reference in a new issue