Skip to content

.dir-locals.el for project specific consult commands #844

Answered by minad
nicolas-graves asked this question in Q&A
Discussion options

You must be logged in to vote

Rereading the issue again, I wonder why you are using eval instead of setting the consult-find-args directly via the .dir-locals.el. I think this is what confused me when I took a look at this, since it may be more complicated than necessary. You probably do this such that you can adjust the consult-find-args and don't have to override them completely.

The idea of consult-find-args and the other similar variables is that you can build up the command dynamically. Your use case may be better configured as follows:

(defvar my-consult-find-auxillary-args nil)
(setq consult-find-args 
  '("find . -not ( -wholename */.* -prune )" my-consult-find-auxillary-args))

Then you can override my-consult…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nicolas-graves
Comment options

Comment options

You must be logged in to vote
1 reply
@nicolas-graves
Comment options

Answer selected by minad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #843 on September 11, 2023 09:12.