0
1
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?
0
1
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?
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. – 2013-10-01T13:03:10.487
Are you referring to entering data from the mini-buffer? – lawlist – 2013-10-03T20:28:37.643
@lawlist: yes, that's what I am referring to. – Alfred M. – 2013-10-04T08:03:21.883
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 withkey-translation-map
and temporarily set theRET
key tospace
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 – 2013-10-04T14:26:53.973NOTE: The function at issue may not necessarily be
– lawlist – 2013-10-04T14:32:32.367ido-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 thekey-translation-map
: http://ergoemacs.org/emacs/emacs_key-translation-map.html