summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-09 12:07:25 +0100
committerDominik Kaiser2025-02-09 12:07:25 +0100
commit01bc012b9845a60ee927d2ac6306b70ef7bcc6ab (patch)
tree0099b2287a6f2161bc2cfb9ebd1f619ca3d13c19
parent86be881cdd4648ac567c2afb004d394b3bd15728 (diff)
downloademacs-01bc012b9845a60ee927d2ac6306b70ef7bcc6ab.tar.gz
emacs-01bc012b9845a60ee927d2ac6306b70ef7bcc6ab.zip
Add ivy and counsel
-rw-r--r--README.org21
-rw-r--r--init.el14
2 files changed, 34 insertions, 1 deletions
diff --git a/README.org b/README.org
index 0fa5147..073c601 100644
--- a/README.org
+++ b/README.org
@@ -18,7 +18,7 @@
(require 'use-package)
(setq use-package-always-ensure t)
#+end_src
-* UI
+* Basic UI
** Remove bars
#+begin_src elisp
(menu-bar-mode -1)
@@ -47,3 +47,22 @@
#+begin_src elisp
(load-theme 'tango-dark)
#+end_src
+* Completion
+** Ivy
+#+begin_src elisp
+ (use-package ivy
+ :bind (("C-s" . swiper)
+ :map ivy-minibuffer-map
+ ("TAB" . ivy-alt-done))
+ :config
+ (ivy-mode 1))
+#+end_src
+** Counsel
+#+begin_src elisp
+ (use-package counsel
+ :bind (("M-x" . counsel-M-x)
+ ("C-x b" . counsel-ibuffer)
+ ("C-x C-f" . counsel-find-file))
+ :config
+ (setq ivy-initial-inputs-alist nil)) ;; Don't start searches with ^
+#+end_src
diff --git a/init.el b/init.el
index 8082c64..8d2a877 100644
--- a/init.el
+++ b/init.el
@@ -28,3 +28,17 @@
(set-fringe-mode 10)
(load-theme 'tango-dark)
+
+(use-package ivy
+ :bind (("C-s" . swiper)
+ :map ivy-minibuffer-map
+ ("TAB" . ivy-alt-done))
+ :config
+ (ivy-mode 1))
+
+(use-package counsel
+ :bind (("M-x" . counsel-M-x)
+ ("C-x b" . counsel-ibuffer)
+ ("C-x C-f" . counsel-find-file))
+ :config
+ (setq ivy-initial-inputs-alist nil)) ;; Don't start searches with ^