Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: – lawlist Oct 4 '13 at 14:32

You must log in to answer this question.

Browse other questions tagged .