* keybinding problem
@ 2003-08-18 4:19 Lowell
2003-08-18 10:55 ` David Andersson
0 siblings, 1 reply; 3+ messages in thread
From: Lowell @ 2003-08-18 4:19 UTC (permalink / raw)
In my .emacs, I have the following line:
(global-set-key [ C-/ ] 'hippie-expand)
But when I do C-h k C-/, it says that that key combo is bound to undo.
Why does my binding not stay?
Lowell
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: keybinding problem
2003-08-18 4:19 keybinding problem Lowell
@ 2003-08-18 10:55 ` David Andersson
2003-08-18 17:21 ` Kevin Rodgers
0 siblings, 1 reply; 3+ messages in thread
From: David Andersson @ 2003-08-18 10:55 UTC (permalink / raw)
Lowell <lkirsh@cs.ubc.ca> writes:
> In my .emacs, I have the following line:
> (global-set-key [ C-/ ] 'hippie-expand)
>
> But when I do C-h k C-/, it says that that key combo is bound to undo.
> Why does my binding not stay?
Try
(global-set-key [(control /)] 'hippie-expand)
It should work in many versions of emacs.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: keybinding problem
2003-08-18 10:55 ` David Andersson
@ 2003-08-18 17:21 ` Kevin Rodgers
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-08-18 17:21 UTC (permalink / raw)
David Andersson wrote:
> Lowell <lkirsh@cs.ubc.ca> writes:
>
>>In my .emacs, I have the following line:
>>(global-set-key [ C-/ ] 'hippie-expand)
>>
>>But when I do C-h k C-/, it says that that key combo is bound to undo.
>>Why does my binding not stay?
Because you are binding the Control-modified slash function key, which
probably does not exist. Instead of the C-/ symbol, you need to specify
the C-/ character:
[?\C-/]
> Try
>
> (global-set-key [(control /)] 'hippie-expand)
Or as Kai would point out: (kbd "C-/")
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-18 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-18 4:19 keybinding problem Lowell
2003-08-18 10:55 ` David Andersson
2003-08-18 17:21 ` Kevin Rodgers
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.