- (add-to-list 'ivy-ignore-buffers 'b/ivy-ignore-buffer-p)
-
- (ivy-mode 1))
-
-(use-package swiper
- :demand
- :after ivy
- :bind (("C-S-s" . swiper-isearch)))
-
-(use-package counsel
- :demand
- :after ivy
- :bind (("C-c f r" . counsel-recentf)
- :map minibuffer-local-map
- ("C-r" . counsel-minibuffer-history))
- :config
+ (add-to-list 'ivy-ignore-buffers #'b/ivy-ignore-buffer-p)
+
+ (define-key ivy-minibuffer-map [escape] #'keyboard-escape-quit)
+ (define-key ivy-minibuffer-map [S-up]
+ #'ivy-previous-history-element)
+ (define-key ivy-minibuffer-map [S-down]
+ #'ivy-next-history-element)
+ (define-key ivy-minibuffer-map (kbd "DEL")
+ #'ivy-backward-delete-char)
+
+ (ivy-mode 1)
+
+ ;; swiper
+ (require 'swiper)
+ (global-set-key (kbd "C-S-s") #'swiper-isearch)
+
+ ;; counsel
+ (require 'counsel)