;; Emacs configuration

;; Parameters for Ivy autocompletion and related tools.

(use-package counsel
  :ensure t
  :config
  (setq-default enable-recursive-minibuffers t)
  :bind
  (("C-s" . counsel-grep-or-swiper)
   ("C-r" . counsel-grep-or-swiper)))

;; Facilitated access to SSH hosts listed in `~/.ssh/config'.
(use-package counsel-tramp
  :ensure t
  :config
  (setq-default tramp-default-method "ssh")
  :bind
  (("C-c s" . counsel-tramp)
   ("C-c q" . counsel-tramp-quit)))

(use-package swiper
  :ensure t
  :bind
  (("C-M-s" . swiper-all)))

(use-package ivy
  :ensure t
  :diminish ivy-mode
  :config
  (setq-default ivy-wrap t
                ivy-use-virtual-buffers t
                ivy-count-format "(%d/%d) ")
  :bind
  (("C-c C-r" . ivy-resume)))

(use-package hydra
  :ensure t)

(use-package ivy-hydra
  :ensure t
  :requires (ivy hydra)
  :after (ivy hydra))


;; Emacs configuration

;; Parameters for Ivy autocompletion and related tools.

(use-package counsel
  :ensure t
  :config
  (setq-default enable-recursive-minibuffers t)
  :bind
  (("C-s" . counsel-grep-or-swiper)
   ("C-r" . counsel-grep-or-swiper)))

;; Facilitated access to SSH hosts listed in `~/.ssh/config'.
(use-package counsel-tramp
  :ensure t
  :config
  (setq-default tramp-default-method "ssh")
  :bind
  (("C-c s" . counsel-tramp)
   ("C-c q" . counsel-tramp-quit)))

(use-package swiper
  :ensure t
  :bind
  (("C-M-s" . swiper-all)))

(use-package ivy
  :ensure t
  :diminish ivy-mode
  :config
  (setq-default ivy-wrap t
                ivy-use-virtual-buffers t
                ivy-count-format "(%d/%d) ")
  :bind
  (("C-c C-r" . ivy-resume)))

;; Nicer display for `ivy-switch-buffer'.
(use-package ivy-rich
  :ensure t
  :config
  (ivy-set-display-transformer 'ivy-switch-buffer
                               'ivy-rich-switch-buffer-transformer)
  (setq-default ivy-rich-path-style 'abbrev
                ivy-virtual-abbreviate 'full
                ivy-rich-switch-buffer-align-virtual-buffer t))

(use-package hydra
  :ensure t)

(use-package ivy-hydra
  :ensure t
  :requires (ivy hydra)
  :after (ivy hydra))


Use ivy-rich for a nicer display of ivy-switch-buffer
Use ivy-rich for a nicer display of ivy-switch-buffer

Guilz/emacs.d