From 85a2ef30ea28a4e41ecfa40e24c77965047cabdc Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 29 Sep 2022 10:57:22 -0500 Subject: [PATCH] eshell changes --- README.org | 15 +++++++++++++-- init.el | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index d30fc83e..9fc6832a 100644 --- a/README.org +++ b/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 diff --git a/init.el b/init.el index ab48a26e..9ab63357 100644 --- a/init.el +++ b/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")