From 32a62a6b506256bedf6e8d37d47386cdadd4a84e Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 31 Jan 2020 18:00:49 +0900 Subject: [PATCH] Do not push mark in minibuffer --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 3945452..3068f7f 100644 --- a/emacs.el +++ b/emacs.el @@ -540,7 +540,8 @@ Otherwize hook it." )) (add-hook 'switch-buffer-functions (lambda (&rest _) - (unless (mark t) + (unless (or (mark t) + (minibufferp)) (push-mark)))) (when (fboundp 'back-button-mode)