From 157db25259e0d07543438b13a54d18f2ca520a9d Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 23 Jan 2020 14:33:42 +0900 Subject: [PATCH] Do not quit ivy cmpl when there is no text left to delete --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 0bb6fc2..6929c60 100644 --- a/emacs.el +++ b/emacs.el @@ -1310,7 +1310,7 @@ Otherwize hook it." (lambda () (setq imenu-generic-expression `(("Sections" ";;;\+\n;; \\(.*\\)\n" 1) - ,@imenu-generic-expression)))) + ,@imenu-generic-expression)))) ;; TODO: Try paraedit http://daregada.blogspot.com/2012/03/paredit.html (with-eval-after-load 'compile @@ -2574,6 +2574,7 @@ Any output will be written to current buffer." (defvar ivy-minibuffer-map) (define-key ivy-minibuffer-map (kbd "C-u") (lambda () (interactive) (delete-region (point-at-bol) (point))))) +(set-variable 'ivy-on-del-error-function 'ignore) (when (fboundp 'counsel-M-x) (define-key esc-map "x" 'counsel-M-x)