[Emacs] Add shortcut for `helm-locate'
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lucien Cartier-Tilet 2020-09-17 13:13:48 +02:00
parent d7c01752cc
commit 414eabf1a6
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 12 additions and 0 deletions

View File

@ -2961,6 +2961,18 @@
:buffer "*org files*")))) :buffer "*org files*"))))
#+END_SRC #+END_SRC
I also have a shortcut for ~helm-locate~ in case I need to find a file that
is not in these directories. One advantage of this over ~helm-find~ is that
it doesnt matter from where I call it, it will find any file on my system
that matches the query, whereas ~helm-find~ will only search in the current
directory and its subdirectories. This time, the declaration is much
simpler:
#+BEGIN_SRC emacs-lisp
(spacemacs/declare-prefix "oF" "locate file")
(spacemacs/set-leader-keys "oF" 'helm-locate)
#+END_SRC
And thats it! This should list all my org files under these directories and And thats it! This should list all my org files under these directories and
give me fuzzy finding for these files. I just need to partially type the give me fuzzy finding for these files. I just need to partially type the
name of the file I want to open and it should open without any issue. name of the file I want to open and it should open without any issue.