Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes

how to specify multiple file extensions and open it in separate buffer

I need this because then I want to delete all find files. Easy to do if you know some ELisp. (mapcan #'delete-file (directory-files-recursively "./" ; current directory ...
shynur's user avatar
  • 5,318
1 vote
Accepted

Run functions/hooks automatically when a specific FILE is opened

Just do it in a find-file-hook function. Just have the function test for your file, and if the file to visit is different then do nothing. C-h v find-file-hook tells us: find-file-hook is a variable ...
Drew's user avatar
  • 77.9k
1 vote
Accepted

how to specify multiple file extensions and open it in separate buffer

You can use find-dired to specify the find arguments you need. So, starting from the directory you want to search in: M-x find-dired RET -name \*.json -o -name \*.txt RET
Manuel Uberti's user avatar
1 vote

With icicle-locate-file, how can I find all *.txt files in the directory?

icicle-locate-file(-other-window) allows (but doesn't require) multi-completion input matching. In your example you apparently just want to find all files whose ''names'' match *.txt, so you don't ...
Drew's user avatar
  • 77.9k

Only top scored, non community-wiki answers of a minimum length are eligible