Jump to: navigation, search


869 bytes added, 05:40, 11 June 2013
See Also: added Smex
; {{Keys|C-f}}
: Temporarily revert to the default find-file behavior. Handy if [[ido]] won't behave as you'd like.
; {{Keys|C-j}}
: Accept the provided text as is, instead of selecting the currently proposed completion.
== Common Customization ==
".ini" ".cfg" ".conf"))
=== Sort by mtime instead of alphabetically ===
If you prefer to sort ido filelist by mtime instead of alphabetically :
<syntaxhighlight lang="lisp">
(add-hook 'ido-make-file-list-hook 'ido-sort-mtime)
(add-hook 'ido-make-dir-list-hook 'ido-sort-mtime)
(defun ido-sort-mtime ()
(setq ido-temp-list
(sort ido-temp-list
(lambda (a b)
(sixth (file-attributes (concat ido-current-directory b)))
(sixth (file-attributes (concat ido-current-directory a)))))))
(ido-to-end ;; move . files to end (again)
(delq nil (mapcar
(lambda (x) (and (char-equal (string-to-char x) ?.) x))
== See Also ==
[[Smex]], a M-x enhancement
== External Links ==

Navigation menu