init-ivy.el 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ;;; init-ivy.el --- .Emacs Configuration -*- lexical-binding: t -*-
  2. ;;; Commentary:
  3. ;;
  4. ;;; Code:
  5. (use-package counsel
  6. :after ivy
  7. :config (counsel-mode))
  8. (use-package ivy
  9. :defer 0.1
  10. :diminish
  11. :bind (("C-c C-r" . ivy-resume)
  12. ("C-x B" . ivy-switch-buffer-other-window))
  13. :commands ivy-mode
  14. :custom
  15. (ivy-count-format "(%d/%d) ")
  16. (ivy-use-virtual-buffers t)
  17. :config (ivy-mode))
  18. (use-package ivy-rich
  19. :after ivy
  20. :custom
  21. (ivy-virtual-abbreviate 'full
  22. ivy-rich-switch-buffer-align-virtual-buffer t
  23. ivy-rich-path-style 'abbrev)
  24. :commands ivy-set-display-transformer
  25. :config
  26. (ivy-set-display-transformer 'ivy-switch-buffer
  27. 'ivy-rich-switch-buffer-transformer))
  28. ;; hydra
  29. (use-package hydra
  30. :pin "MELPA"
  31. :config (hydra-add-font-lock))
  32. (use-package ivy-hydra
  33. :pin "MELPA")
  34. (use-package swiper
  35. :after ivy
  36. :bind (("C-s" . swiper)
  37. ("C-r" . swiper)))
  38. (provide 'init-ivy)
  39. ;; Local Variables:
  40. ;; byte-compile-warnings: (not free-vars)
  41. ;; End:
  42. ;;; init-ivy.el ends here