Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to use the space key instead of Return to visit the current file or buffer guessed with ido mode in emacs. How can this be achieved?

share|improve this question
My problem was mostly that the <RET> key is far from home row but C-m is a convenient default alias. The question is still interesting regarding ido customisation. –  Alfred M. Oct 1 '13 at 13:03
Are you referring to entering data from the mini-buffer? –  lawlist Oct 3 '13 at 20:28
@lawlist: yes, that's what I am referring to. –  Alfred M. Oct 4 '13 at 8:03
Do you think it is possible that the function ido-complete (inside the source of .../lisp/ido.el) might be responsible for the minibuffer selection? If so, then perhaps you could experiment with key-translation-map and temporarily set the RET key to space within the function (whichever it is) and restore it to its default behavior at the end of the function. For example, you could copy whatever function is responsible -- paste it into your .emacs file and change the name (e.g., lawlist-ido-complete) and then use something like (defalias 'ido-complete 'lawlist-ido-complete). –  lawlist Oct 4 '13 at 14:26
NOTE: The function at issue may not necessarily be ido-complete -- that was just my first guess -- you will need to comb the source of .../lisp/ido.el to find the actual function responsible for finishing the minibuffer entry that you are using. Here is a link that describes how to use the key-translation-map: ergoemacs.org/emacs/emacs_key-translation-map.html –  lawlist Oct 4 '13 at 14:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.