Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Emacs to ignore *.orig files

I end up having a bunch of *.orig files sitting around, from hg reverts. It's annoying when I find myself editing foo.c.orig instead of foo.c by mistake. (I use ido-mode and the first match is not always the shortest.)

Is there a way to tell Emacs to ignore *.orig files as though they were *~ files? I'm not having much luck with google -- I've found a million pages telling me how to change where it saves its own backup files, but not how to ignore others.

like image 262
Ken Avatar asked Mar 13 '09 17:03

Ken


1 Answers

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

like image 159
huaiyuan Avatar answered Nov 15 '22 09:11

huaiyuan