diff options
author | bd <bdunahu@colostate.edu> | 2024-01-11 21:23:34 -0700 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-01-11 21:23:34 -0700 |
commit | a46b4ee2218927096003a6861441cd10fb59bf66 (patch) | |
tree | a85c69ee57ea1f6fc4c20f42fe327d29416484c2 /.config/emacs/modules/bd--shells.el | |
parent | 1ced565816120bfcc351daf9fc3a4e851162e3b7 (diff) |
Changed shell preferences, org capture templates, fixed vali.scm
Diffstat (limited to '.config/emacs/modules/bd--shells.el')
-rw-r--r-- | .config/emacs/modules/bd--shells.el | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/.config/emacs/modules/bd--shells.el b/.config/emacs/modules/bd--shells.el index 8bcd9c4..1ca8bb0 100644 --- a/.config/emacs/modules/bd--shells.el +++ b/.config/emacs/modules/bd--shells.el @@ -9,17 +9,6 @@ ;;;; eshell -(defun eshell-open-buffer () - "Opens eshell in the bottom -side window." - (interactive) - (let ((curr-buffer (current-buffer)) - (eshell (eshell))) - (switch-to-buffer curr-buffer) - (display-buffer-in-side-window (get-buffer eshell) '((side . top))) - (switch-to-buffer-other-window eshell))) - - (defun bd/get-prompt-path () (abbreviate-file-name (eshell/pwd))) @@ -36,9 +25,7 @@ status, and path." (require 'esh-mode) -(keymap-global-set "C-z C-e" 'eshell-open-buffer) -(keymap-set eshell-mode-map "C-q" 'delete-window) ; mostly for side window -(keymap-set eshell-mode-map "<tab>" 'completion-at-point) ; mostly for side window +(keymap-set eshell-mode-map "<tab>" 'completion-at-point) (setopt eshell-prompt-function 'bd/eshell-prompt eshell-prompt-regexp "^> " eshell-scroll-to-bottom-on-input 'this @@ -46,7 +33,20 @@ status, and path." ;;;; shell +(defun shell-open-buffer () + "Opens eshell in the bottom +side window." + (interactive) + (let ((curr-buffer (current-buffer)) + (shell (shell))) + (switch-to-buffer curr-buffer) + (display-buffer-in-side-window (get-buffer shell) '((side . top))) + (switch-to-buffer-other-window shell))) + + (require 'shell) +(keymap-global-set "C-z C-e" 'shell-open-buffer) +(keymap-set eshell-mode-map "C-q" 'delete-window) ; mostly for side window (keymap-set shell-mode-map "C-c C-k" #'comint-clear-buffer) (setopt shell-command-prompt-show-cwd t shell-highlight-undef-enable t |