summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el8
-rw-r--r--user/settings/emacs.nix1
2 files changed, 9 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index fe710ba3..d7d3753d 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -249,6 +249,13 @@ With two prefix arguments, write out the day and month name."
             (setq consult-ripgrep-args
                   "rg --null --line-buffered --color=never --max-columns=1000 --path-separator /   --smart-case --no-heading --with-filename --line-number --search-zip --follow")))
 
+(use-package consult-dir
+  :defer 10
+  :general ("C-x C-d" #'consult-dir)
+  (:keymaps 'vertico-map
+            "C-x C-d" #'consult-dir
+            "C-x C-j" #'consult-jump))
+
 (use-package embark
   :general ("C-." #'embark-act
             "M-." #'embark-dwim
@@ -1181,6 +1188,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   "br" #'revert-buffer
   "bk" #'kill-buffer
   "dd" #'dired
+  "D" #'consult-dir
   "e" '(:keymap envrc-command-map :package envrc)
   "fs" #'save-buffer
   "ff" #'find-file
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index ad02242d..b44409ec 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -105,6 +105,7 @@ in
         company-shell
         company-tabnine
         consult
+        consult-dir
         consult-ghq
         consult-eglot
         crux