[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set default locate switches?
From: |
Eli Zaretskii |
Subject: |
Re: How to set default locate switches? |
Date: |
Thu, 10 Dec 2020 16:06:32 +0200 |
> From: Vladimir Nikishkin <lockywolf@gmail.com>
> Date: Thu, 10 Dec 2020 14:16:43 +0800
>
> I am using locate a lot to find files and directories.
> However, by default locate searches in a case-sensitive way, and in the
> full path. On the other hand, I like searching the way described with
> locate's `-ieb` switches. (existing, case-fold, basename)
>
> I can, obviously, use C-u locate , but that's more typing.
>
> Is there a way to set those keys by default?
You should be able to provide your own function to compute the
'locate' command line, and set the variable locate-make-command-line
to point to that function instead of locate-default-make-command-line.