summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-06-24 20:05:17 +0200
committerAlan Pearce2023-06-24 20:05:17 +0200
commit03ebfee7952096779408d621fa1cdd64fec1cb01 (patch)
treecaea31c930e159fdd1fd854d0d3271ee7fbae544 /user/emacs
parente79cab2ddf289d62081fcbb50e080581c5e68080 (diff)
downloadnixfiles-03ebfee7952096779408d621fa1cdd64fec1cb01.tar.lz
nixfiles-03ebfee7952096779408d621fa1cdd64fec1cb01.tar.zst
nixfiles-03ebfee7952096779408d621fa1cdd64fec1cb01.zip
Emacs: set up consult-dir
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el8
1 files changed, 8 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