From 847685397c7d4e2fcbff5d6b162f6e5e0a7594a8 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 3 Feb 2020 18:03:25 +0900 Subject: [PATCH] Remove mark in minibuffer --- emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.el b/emacs.el index 9c85971..682e2a3 100644 --- a/emacs.el +++ b/emacs.el @@ -543,6 +543,11 @@ Otherwize hook it." (unless (or (mark t) (minibufferp)) (push-mark)))) +(add-hook 'switch-buffer-functions + (lambda (&rest _) + (when (minibufferp) + ;; Remove mark in minibuffer + (set-mark nil)))) (when (fboundp 'back-button-mode) (back-button-mode 1))