summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorbd <bdunahu@colostate.edu>2024-03-24 18:29:28 -0600
committerbd <bdunahu@colostate.edu>2024-03-24 18:29:28 -0600
commit1ae1bfe0021b51a9877943a3713ebdb3d9c52b8f (patch)
treef7ae1b9d00902d47e307af84050c9cb462cba909 /.config/emacs
parent9fd40b596a528aff48683b0cd3f7a6f60ec49b13 (diff)
Partial changes to make eshell more usable, Popper.el standard
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/modules/bd--shells.el30
1 files changed, 14 insertions, 16 deletions
diff --git a/.config/emacs/modules/bd--shells.el b/.config/emacs/modules/bd--shells.el
index ae34bbe..c857f4c 100644
--- a/.config/emacs/modules/bd--shells.el
+++ b/.config/emacs/modules/bd--shells.el
@@ -8,6 +8,20 @@
(with-eval-after-load "term" (defalias 'term 'ansi-term))
;;;; eshell
+;; path
+(add-to-list 'exec-path "/home/bdunahu/Personal/scripts")
+
+;; alias
+
+;; completions
+(require 'esh-mode)
+(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
+ eshell-banner-message (concat "\n" (propertize " " 'display (create-image (expand-file-name "~/.config/emacs/images/raven.png") 'png nil :scale 0.2 :align-to "center")) "\n"))
+
+;; prompt
(defun bd/get-prompt-path ()
(abbreviate-file-name (eshell/pwd)))
@@ -23,24 +37,8 @@ status, and path."
(propertize "\n> " 'face `(:foreground "#c33027"))))
-(require 'esh-mode)
-(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
- eshell-banner-message (concat "\n" (propertize " " 'display (create-image (expand-file-name "~/.config/emacs/images/raven.png") 'png nil :scale 0.2 :align-to "center")) "\n"))
-
-
;;;; shell
(require 'shell)
-(keymap-global-set "C-z C-e" (lambda ()
- (interactive)
- (let ((curr-buffer (current-buffer))
- (shell (shell)))
- (switch-to-buffer curr-buffer)
- (display-buffer (get-buffer shell))
- (switch-to-buffer-other-window shell))))
-(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