summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-06-24 20:05:17 +0200
committerAlan Pearce2023-06-24 20:05:17 +0200
commit03ebfee7952096779408d621fa1cdd64fec1cb01 (patch)
treecaea31c930e159fdd1fd854d0d3271ee7fbae544
parente79cab2ddf289d62081fcbb50e080581c5e68080 (diff)
downloadnixfiles-03ebfee7952096779408d621fa1cdd64fec1cb01.tar.lz
nixfiles-03ebfee7952096779408d621fa1cdd64fec1cb01.tar.zst
nixfiles-03ebfee7952096779408d621fa1cdd64fec1cb01.zip
Emacs: set up consult-dir
-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