help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lisp error when using M-x


From: wael-zwaiter
Subject: Re: Lisp error when using M-x
Date: Mon, 11 Jan 2021 01:00:35 +0100

Hitting C-i it is still saying TAB.




> Sent: Monday, January 11, 2021 at 11:33 AM
> From: "Óscar Fuentes" <ofv@wanadoo.es>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Lisp error when using M-x
>
> wael-zwaiter@gmx.com writes:
> 
> > I want to use C-i for ivy related commands.
> >
> >   (global-set-key (kbd "C-i C-s") 'swiper)
> >   (global-set-key (kbd "C-i C-r") 'ivy-resume)
> >   (global-set-key (kbd "C-i C-i") 'ivy-resume)
> >   (global-set-key (kbd "C-i M-x") 'counsel-M-x)
> >   (global-set-key (kbd "C-i C-f") 'counsel-find-file)
> 
> For that you need to convert C-i to a prefix key. This seems to work:
> 
> (defvar cikm (make-keymap))
> (global-set-key (kbd "C-i") cikm)
> (global-set-key (kbd "C-i C-s") (lambda () (interactive) (message "hi!")))
> 
> Please note that Emacs has some guidelines about choosing keybindings:
> some are reserved for users, some for external packages and some others
> for Emacs itself.
> 
> See the "Key Bindings" node in the Emacs manual.
> 
> 
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]