Skip to content

Commit

Permalink
Custom file extension order.
Browse files Browse the repository at this point in the history
  • Loading branch information
winfred-lu committed Apr 13, 2014
1 parent 602d9e3 commit eb6fb06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wf/wf-buffer.el
Expand Up @@ -35,15 +35,16 @@
;; ido settings
(setq ido-enable-flex-matching t
ido-everywhere t
ido-max-directory-size 100000)
ido-max-directory-size 100000
ido-file-extensions-order '(".c" ".py" ".el" ".org" ".sh"))
(ido-mode t)
(put 'dired-do-rename 'ido nil)
(defun wf-ido-ignore-buf (name)
(with-current-buffer name (not buffer-file-name)))
(setq ido-ignore-buffers '("^ " wf-ido-ignore-buf))
(dolist (d '("\\`auto" "\\`backups/" "\\`CVS/"))
(add-to-list 'ido-ignore-directories d))
(dolist (f '("tags" "\\`cscope." "\\.dep$" ".d.emacs.d" ".dropbox"))
(dolist (f '("tags" "\\`cscope." "\\.dep$" ".dropbox"))
(add-to-list 'ido-ignore-files f))

(defun wf-sudo-find-file ()
Expand Down

0 comments on commit eb6fb06

Please sign in to comment.