emacs.d

My Emacs configuration
git clone https://git.jamzattack.xyz/emacs.d
Log | Files | Refs | LICENSE

commit 09d6cb5ae92d48faeb2551f1201dd1dac2ee45f9
parent de4f28164e74a34fd728b6e8c01871eb4ac4c426
Author: Jamie Beardslee <beardsleejamie@gmail.com>
Date:   Fri, 28 Feb 2020 20:32:55 +1300

in (use-package eshell): Adjusted #'eshell-delete-or-quit so that it doesn't quit unless the input is empty

Diffstat:
MREADME.org | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org @@ -339,10 +339,15 @@ delete-char or kill-buffer like a "normal" shell. :custom (eshell-history-size 1000) :config (defun eshell-delete-or-quit (arg) - "If point is at the end of the buffer, kill the buffer. Just - like giving EOF to a normal shell." + "If point is at the end of the buffer and input is empty, + kill the buffer. Just like giving EOF to a normal shell." (interactive "p") - (if (equal (point) (point-max)) + (if (= + (save-excursion + (eshell-bol) + (point)) + (point) + (point-max)) (kill-buffer (current-buffer)) (delete-char arg))) :bind (:map eshell-mode-map