From 23698ce18f5b9d6a5c47b18ec2ed094bec3d7139 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 25 Oct 2019 16:59:12 +0900 Subject: [PATCH] Fix ivy keybind --- emacs.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index c5d45b4..df252d4 100644 --- a/emacs.el +++ b/emacs.el @@ -2369,9 +2369,10 @@ Any output will be written to current buffer." "" s)))))) - (defvar ivy-minibuffer-map) - (define-key ivy-minibuffer-map (kbd "C-u") - (lambda () (interactive) (delete-region (point-at-bol) (point)))) + (with-eval-after-load 'ivy + (defvar ivy-minibuffer-map) + (define-key ivy-minibuffer-map (kbd "C-u") + (lambda () (interactive) (delete-region (point-at-bol) (point))))) (define-key esc-map "x" 'counsel-M-x) ;; (counsel-mode 1) ;; counsel-fzf executes fzf -f QUERY for each input