aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2021-04-21 22:53:14 -0700
committerRaul Benencia <rul@kalgan.cc>2021-04-21 22:54:00 -0700
commit084360dd6cae51f00570f7bdac3d8df04966791b (patch)
treeee34188f690a55d4f44f76cd12121b79c3c753b3 /.emacs.local.d/modes
parentc6501e54a137231f05e141f8d458a3f24de223f9 (diff)
Use ivy instead of helm/ido
Diffstat (limited to '.emacs.local.d/modes')
-rw-r--r--.emacs.local.d/modes/ivy.el27
1 files changed, 27 insertions, 0 deletions
diff --git a/.emacs.local.d/modes/ivy.el b/.emacs.local.d/modes/ivy.el
new file mode 100644
index 0000000..8533676
--- /dev/null
+++ b/.emacs.local.d/modes/ivy.el
@@ -0,0 +1,27 @@
+(use-package ivy
+ :diminish (ivy-mode . "")
+ :init (ivy-mode 1) ; globally at startup
+ :config
+ (setq ivy-use-virtual-buffers t)
+ (setq ivy-height 20)
+ (setq ivy-count-format "%d/%d "))
+(provide 'init-ivy)
+
+;; Override the basic Emacs commands
+(use-package counsel
+ :bind* ; load when pressed
+ (("M-x" . counsel-M-x)
+ ("C-s" . swiper)
+ ("C-x C-f" . counsel-find-file)
+ ("C-x C-r" . counsel-recentf) ; search for recently edited
+ ("C-c g" . counsel-git) ; search for files in git repo
+ ("C-c j" . counsel-git-grep) ; search for regexp in git repo
+ ("C-c /" . counsel-ag) ; Use ag for regexp
+ ("C-x l" . counsel-locate)
+ ("C-x C-f" . counsel-find-file)
+ ("<f1> f" . counsel-describe-function)
+ ("<f1> v" . counsel-describe-variable)
+ ("<f1> l" . counsel-find-library)
+ ("<f2> i" . counsel-info-lookup-symbol)
+ ("<f2> u" . counsel-unicode-char)
+ ("C-c C-r" . ivy-resume))) ; Resume last Ivy-based completion
nihil fit ex nihilo