Unbind <up> and <down> in eshell-hist-mode-map

This commit is contained in:
Mateus Rodrigues
2023-01-26 11:04:26 +00:00
parent e50820192c
commit 2107f1603e
2 changed files with 21 additions and 8 deletions

View File

@@ -1,9 +1,21 @@
;; colors in eshell ;; colors in eshell
(add-hook 'eshell-mode-hook ;; (add-hook 'eshell-mode-hook
(lambda () ;; (lambda ()
(setenv "TERM" "xterm-256color"))) ;; (setenv "TERM" "xterm-256color")))
(add-hook 'eshell-before-prompt-hook (lambda () ;; (add-hook 'eshell-before-prompt-hook (lambda ()
(setq xterm-color-preserve-properties t))) ;; (setq xterm-color-preserve-properties t)))
(add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter) ;; (add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter)
(setq eshell-output-filter-functions ;; (setq eshell-output-filter-functions
(remove 'eshell-handle-ansi-color eshell-output-filter-functions)) ;; (remove 'eshell-handle-ansi-color eshell-output-filter-functions))
;; Don't cycle through history with <up> and <down>
;; Those keys were previously bound to:
;; eshell-previous-matching-input-from-input and
;; eshell-next-matching-input-from-input, respectively
(defun my-eshell-setup ()
(progn
(define-key eshell-hist-mode-map (kbd "<up>") nil)
(define-key eshell-hist-mode-map (kbd "<down>") nil)))
(add-hook 'eshell-mode-hook #'my-eshell-setup)

View File

@@ -32,6 +32,7 @@
;(load "~/.emacs.d/elisp/mu4e-setup.el") ;(load "~/.emacs.d/elisp/mu4e-setup.el")
(load "~/.emacs.d/elisp/settings.el") (load "~/.emacs.d/elisp/settings.el")
(load "~/.emacs.d/elisp/eshell-setup.el")
(load "~/.emacs.d/elisp/extras.el") (load "~/.emacs.d/elisp/extras.el")
(load "~/.emacs.d/elisp/custom.el") (load "~/.emacs.d/elisp/custom.el")