about summary refs log tree commit diff
path: root/dotfiles/.emacs
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-02-28 00:28:04 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-02-28 00:28:04 +0100
commitd7163760642bed64d75d6716275d587270645696 (patch)
treeb70020fbd63a464f59e6fe4969222b2af347ad10 /dotfiles/.emacs
parentDotfiles: Emacs: Dired sidebar resizable (diff)
downloadnixos-config-d7163760642bed64d75d6716275d587270645696.tar.gz
nixos-config-d7163760642bed64d75d6716275d587270645696.tar.bz2
nixos-config-d7163760642bed64d75d6716275d587270645696.zip
Dotfiles: Emacs: Use vertico + consult
Diffstat (limited to '')
-rw-r--r--dotfiles/.emacs36
1 files changed, 21 insertions, 15 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs
index 3ff6c9c..e711dc0 100644
--- a/dotfiles/.emacs
+++ b/dotfiles/.emacs
@@ -101,31 +101,37 @@
   :config
   (direnv-mode))
 
-;; TODO: Use vertico
-(use-package helm
-  :ensure t)
-
-(use-package helm-ag
+(use-package vertico
   :ensure t
   :init
-  (setq helm-ag-fuzzy-match t))
+  (vertico-mode))
 
-(use-package projectile
+(use-package marginalia
   :ensure t
   :init
-  (setq projectile-project-search-path '("~/src/"))
-  :config
-  (projectile-mode +1))
+  (marginalia-mode))
 
-(use-package helm-projectile
+(use-package consult
   :ensure t
   :config
-  (helm-projectile-on)
+  (setq consult-async-min-input 2)
   :bind
   (:map evil-normal-state-map
-    ("C-S-f" . helm-occur)
-    ("C-p" . helm-projectile-find-file)
-    ("C-S-p" . helm-projectile-ag)))
+  ("C-S-f" . consult-line)
+  ("C-p" . consult-find)
+  ("C-S-p" . consult-ripgrep)))
+
+(use-package savehist
+  :ensure t
+  :init
+  (savehist-mode))
+
+(use-package projectile
+  :ensure t
+  :init
+  (setq projectile-project-search-path '("~/src/"))
+  :config
+  (projectile-mode +1))
 
 (use-package company
   :ensure t