all repos — nixfiles @ 03ebfee7952096779408d621fa1cdd64fec1cb01

System and user configuration, managed by nix and home-manager

Emacs: set up consult-dir
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2023 20:05:17 +0200
commit

03ebfee7952096779408d621fa1cdd64fec1cb01

parent

e79cab2ddf289d62081fcbb50e080581c5e68080

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -249,6 +249,13 @@ :config (progn             (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 @@ "bx" #'kill-this-buffer   "br" #'revert-buffer
   "bk" #'kill-buffer
   "dd" #'dired
+  "D" #'consult-dir
   "e" '(:keymap envrc-command-map :package envrc)
   "fs" #'save-buffer
   "ff" #'find-file
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -105,6 +105,7 @@ company-posframe         company-shell
         company-tabnine
         consult
+        consult-dir
         consult-ghq
         consult-eglot
         crux