Follow

To prevent Emacs polluting my find-file dialog with compiled guile files I add a line to .dir-locals.el:

(eval . (add-to-list 'completion-ignored-extensions ".go"))

It also makes files with this extension fade in dired.

@abcdw does that just work for dired? what about recentf?

@dekkzz78 It works for completion, more over if there is no candidates matching, files with ignored extensions will appear again.

It's just a side effect that dired respect this variable and such files have a grayish color in it.

Depends on what you mean by recentf, for consult-recent-file those files will be hidden as well (probably because it has 'file category), but recentf-open-files won't even try to hide them.

@abcdw
There's supposed to be something for vim also but I've been having a hard time getting it to work

@efraim Dude if you find something like that for vim please tell me lol

@abcdw

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.