all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem modifying a keyboard map
@ 2013-03-08 11:32 Julien Cubizolles
  2013-03-08 12:19 ` Dmitry Gutov
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Cubizolles @ 2013-03-08 11:32 UTC (permalink / raw)
  To: help-gnu-emacs

The following code adds a function to the keymap of ido but it's removed
from it later on, any idea what could be resetting/clearing it ?

--8<---------------cut here---------------start------------->8---
(define-key ido-file-dir-completion-map (kbd "$") 'jc-ido-use-bookmark-dir)
--8<---------------cut here---------------end--------------->8---




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem modifying a keyboard map
  2013-03-08 11:32 Problem modifying a keyboard map Julien Cubizolles
@ 2013-03-08 12:19 ` Dmitry Gutov
  2013-03-08 13:05   ` Julien Cubizolles
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Gutov @ 2013-03-08 12:19 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: help-gnu-emacs

Julien Cubizolles <j.cubizolles@free.fr> writes:

> The following code adds a function to the keymap of ido but it's removed
> from it later on, any idea what could be resetting/clearing it ?
>
> (define-key ido-file-dir-completion-map (kbd "$") 'jc-ido-use-bookmark-dir)

`ido-common-initialization', probably. It's called by `ido-completing-read'.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem modifying a keyboard map
  2013-03-08 12:19 ` Dmitry Gutov
@ 2013-03-08 13:05   ` Julien Cubizolles
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Cubizolles @ 2013-03-08 13:05 UTC (permalink / raw)
  To: help-gnu-emacs

Dmitry Gutov <dgutov@yandex.ru> writes:

> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> The following code adds a function to the keymap of ido but it's removed
>> from it later on, any idea what could be resetting/clearing it ?
>>
>> (define-key ido-file-dir-completion-map (kbd "$") 'jc-ido-use-bookmark-dir)
>
> `ido-common-initialization', probably. It's called by `ido-completing-read'.

You're right, it calls   ido-init-completion-maps. The right way to add
key bindings is (from ido.el)

--8<---------------cut here---------------start------------->8---
(add-hook 'ido-setup-hook 'ido-my-keys)

(defun ido-my-keys ()
  "Add my keybindings for ido."
  (define-key ido-completion-map " " 'ido-next-match)
)                              
--8<---------------cut here---------------end--------------->8---




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-08 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 11:32 Problem modifying a keyboard map Julien Cubizolles
2013-03-08 12:19 ` Dmitry Gutov
2013-03-08 13:05   ` Julien Cubizolles

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.