[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: global-set-key + query-replace-regexp
From: |
Neon Absentius |
Subject: |
Re: global-set-key + query-replace-regexp |
Date: |
Thu, 27 Oct 2005 15:55:12 +0000 |
User-agent: |
Mutt/1.4.2.1i |
On Thu, Oct 27, 2005 at 04:55:21PM +0200, luca.spinacci@selex-comms.com wrote:
>
>
> I would like a short key to invoke query-replace-regexp command.
> I tried
> (global-set-key [f1] 'my-query-replace-regexp)
> (fset 'my-query-replace-regexp [?\C-\M-%])
> but the key "f1" invoke (M-x query-replace-regexp "" "" nil nil)
>
Try
(global-set-key (kbd "<f1>") 'name-of-command)
HTH
--
There is no national science just as there is no national
multiplication table; what is national is no longer science.
-- Anton Checov