From 2107f1603e1da2ca442859150af9b626b9994cb1 Mon Sep 17 00:00:00 2001 From: Mateus Rodrigues Date: Thu, 26 Jan 2023 11:04:26 +0000 Subject: [PATCH] Unbind and in eshell-hist-mode-map --- elisp/eshell-setup.el | 28 ++++++++++++++++++++-------- init.el | 1 + 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/elisp/eshell-setup.el b/elisp/eshell-setup.el index 353df18..6a0f0c3 100644 --- a/elisp/eshell-setup.el +++ b/elisp/eshell-setup.el @@ -1,9 +1,21 @@ ;; colors in eshell -(add-hook 'eshell-mode-hook - (lambda () - (setenv "TERM" "xterm-256color"))) -(add-hook 'eshell-before-prompt-hook (lambda () - (setq xterm-color-preserve-properties t))) -(add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter) -(setq eshell-output-filter-functions - (remove 'eshell-handle-ansi-color eshell-output-filter-functions)) +;; (add-hook 'eshell-mode-hook +;; (lambda () +;; (setenv "TERM" "xterm-256color"))) +;; (add-hook 'eshell-before-prompt-hook (lambda () +;; (setq xterm-color-preserve-properties t))) +;; (add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter) +;; (setq eshell-output-filter-functions +;; (remove 'eshell-handle-ansi-color eshell-output-filter-functions)) + +;; Don't cycle through history with and +;; 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 "") nil) + (define-key eshell-hist-mode-map (kbd "") nil))) + +(add-hook 'eshell-mode-hook #'my-eshell-setup) diff --git a/init.el b/init.el index 363b689..5143fb0 100644 --- a/init.el +++ b/init.el @@ -32,6 +32,7 @@ ;(load "~/.emacs.d/elisp/mu4e-setup.el") (load "~/.emacs.d/elisp/settings.el") +(load "~/.emacs.d/elisp/eshell-setup.el") (load "~/.emacs.d/elisp/extras.el") (load "~/.emacs.d/elisp/custom.el")