aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/init-helm.el34
-rw-r--r--modules/init-ivy.el42
2 files changed, 42 insertions, 34 deletions
diff --git a/modules/init-helm.el b/modules/init-helm.el
deleted file mode 100644
index d498a5c..0000000
--- a/modules/init-helm.el
+++ /dev/null
@@ -1,34 +0,0 @@
-;;; init-helm.el --- .Emacs Configuration -*- lexical-binding: t -*-
-;;; Commentary:
-;;
-
-;;; Code:
-(use-package helm
- :ensure t
- :bind (("M-x" . helm-M-x)
- ("C-x b" . helm-buffers-list)
- ("C-x r b" . helm-filtered-bookmarks)
- ("M-y" . helm-show-kill-ring)
- ("C-x C-f" . helm-find-files)
- :map helm-map
- ("<tab>" . helm-execute-persistent-action)
- ("C-i" . helm-execute-persistent-action)
- ("C-z" . helm-select-action))
-
- :config
- (setq helm-autoresize-mode t) ;; default 40%
- (setq helm-split-window-inside-p t)
- (setq helm-autoresize-max-height 50)
- (setq helm-autoresize-min-height 20)
-
- ;; colors
- (set-face-attribute 'helm-selection nil
- :background "gold"
- :foreground "black"))
-
-(provide 'init-helm)
-
-;; Local Variables:
-;; byte-compile-warnings: (not free-vars)
-;; End:
-;;; init-helm.el ends here
diff --git a/modules/init-ivy.el b/modules/init-ivy.el
new file mode 100644
index 0000000..5879b2d
--- /dev/null
+++ b/modules/init-ivy.el
@@ -0,0 +1,42 @@
+;;; init-ivy.el --- .Emacs Configuration -*- lexical-binding: t -*-
+;;; Commentary:
+;;
+
+;;; Code:
+(use-package counsel
+ :after ivy
+ :config (counsel-mode))
+
+(use-package ivy
+ :defer 0.1
+ :diminish
+ :bind (("C-c C-r" . ivy-resume)
+ ("C-x B" . ivy-switch-buffer-other-window))
+ :commands ivy-mode
+ :custom
+ (ivy-count-format "(%d/%d) ")
+ (ivy-use-virtual-buffers t)
+ :config (ivy-mode))
+
+(use-package ivy-rich
+ :after ivy
+ :custom
+ (ivy-virtual-abbreviate 'full
+ ivy-rich-switch-buffer-align-virtual-buffer t
+ ivy-rich-path-style 'abbrev)
+ :commands ivy-set-display-transformer
+ :config
+ (ivy-set-display-transformer 'ivy-switch-buffer
+ 'ivy-rich-switch-buffer-transformer))
+
+(use-package swiper
+ :after ivy
+ :bind (("C-s" . swiper)
+ ("C-r" . swiper)))
+
+(provide 'init-ivy)
+
+;; Local Variables:
+;; byte-compile-warnings: (not free-vars)
+;; End:
+;;; init-ivy.el ends here