summaryrefslogtreecommitdiffstats
path: root/lisp/bandali-ivy.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-09-27 12:06:44 -0400
committerAmin Bandali <bandali@gnu.org>2020-09-27 12:07:10 -0400
commitc84be134273e6baa0633d194c9524658e221ee7f (patch)
treef4875124e79efae46b2f275a8c7e4d6629abe6b8 /lisp/bandali-ivy.el
parentc49fa11a90f9b17159062e3ab2f4a960f1048ffd (diff)
downloadconfigs-c84be134273e6baa0633d194c9524658e221ee7f.tar.gz
configs-c84be134273e6baa0633d194c9524658e221ee7f.tar.xz
configs-c84be134273e6baa0633d194c9524658e221ee7f.zip
Drop use-package
along with some unused stuff
Diffstat (limited to '')
-rw-r--r--lisp/bandali-ivy.el61
1 files changed, 30 insertions, 31 deletions
diff --git a/lisp/bandali-ivy.el b/lisp/bandali-ivy.el
index 3a67cf1..973323a 100644
--- a/lisp/bandali-ivy.el
+++ b/lisp/bandali-ivy.el
@@ -24,20 +24,14 @@
;;; Code:
-(use-package ivy
- :defer 0.3
- :bind
- (:map ivy-minibuffer-map
- ([escape] . keyboard-escape-quit)
- ([S-up] . ivy-previous-history-element)
- ([S-down] . ivy-next-history-element)
- ("DEL" . ivy-backward-delete-char))
- :config
- (setq ivy-wrap t
- ;; ivy-height 14
- ivy-use-virtual-buffers t
- ivy-virtual-abbreviate 'abbreviate
- ivy-count-format "%d/%d ")
+(run-with-idle-timer 0.3 nil #'require 'ivy)
+(with-eval-after-load 'ivy
+ ;; ivy
+ (csetq ivy-wrap t
+ ;; ivy-height 14
+ ivy-use-virtual-buffers t
+ ivy-virtual-abbreviate 'abbreviate
+ ivy-count-format "%d/%d ")
(defvar b/ivy-ignore-buffer-modes
'(;; dired-mode
@@ -52,24 +46,29 @@ This function is intended for use with `ivy-ignore-buffers'."
(mode (and buf (buffer-local-value 'major-mode buf))))
(and mode
(apply #'provided-mode-derived-p mode b/ivy-ignore-buffer-modes))))
- (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)
(counsel-mode 1)
- (defalias 'locate #'counsel-locate))
+ (defalias 'locate #'counsel-locate)
+ (global-set-key (kbd "C-c f r") #'counsel-recentf)
+ (define-key minibuffer-local-map
+ (kbd "C-r") #'counsel-minibuffer-history))
(provide 'bandali-ivy)
;;; bandali-ivy.el ends here