简体   繁体   中英

how to use local locate DB for emacs helm?

I created a local db with updatedb -l 0 -o update.db -U .

Now when I am under the directory where the update.db is or any other directory below it, I want helm-locate to use the update.db

(as in sublime go-to-anything with a folder)

How can I do this?
(I have to go to the directory which contains the update.db file everytime)..

Try setting locate-make-command-line .

(defun jpk/locate-make-command-line (str)
  (list locate-command "-d" "/path/to/update.db" str))
(setq locate-make-command-line 'jpk/locate-make-command-line)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM