[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to bind isearch-repeat-forward to F3 in a certain mode only?
From: |
Javier |
Subject: |
Re: How to bind isearch-repeat-forward to F3 in a certain mode only? |
Date: |
Thu, 23 Jul 2015 22:53:00 +0000 (UTC) |
User-agent: |
tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) |
> ,----
> | (my-mode)
> | (make-local-variable 'isearch-mode-map)
> | (define-key isearch-mode-map (kbd "<F3>") #'isearch-repeat-forward)
> `----
>
> but to no avail. Inspecting `isearch-mode-map' implies that it was in
> fact changed globally. Pressing F3 while in isearch, though, starts
> recording a keyboard macro anyway (both in my-mode and outside it).
(defun my-mode-keys ()
"Keybindings for my-mode. To be used as a hook."
(local-set-key (kbd "<F3>") 'isearch-repeat-forward)
)
(add-hook 'my-mode-hook 'my-mode-keys)
Would this work? Is 'my-mode-hook defined in your case?
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, (continued)
- Message not available
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Hikaru Ichijyo, 2015/07/29
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Ian Zimmerman, 2015/07/29
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Emanuel Berg, 2015/07/29
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Ian Zimmerman, 2015/07/30
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Emanuel Berg, 2015/07/30
- Message not available
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Hikaru Ichijyo, 2015/07/29
- Message not available
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, HASM, 2015/07/30
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Emanuel Berg, 2015/07/30
- Message not available
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Rusi, 2015/07/28
- Re: How to bind isearch-repeat-forward to F3 in a certain mode only?, Marcin Borkowski, 2015/07/27
Re: How to bind isearch-repeat-forward to F3 in a certain mode only?,
Javier <=