all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Javier <nospam@nospam.com>
To: help-gnu-emacs@gnu.org
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)	[thread overview]
Message-ID: <morr8c$boe$1@speranza.aioe.org> (raw)
In-Reply-To: mailman.7323.1437688903.904.help-gnu-emacs@gnu.org

> ,----
> | (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?



       reply	other threads:[~2015-07-23 22:53 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7323.1437688903.904.help-gnu-emacs@gnu.org>
2015-07-23 22:53 ` Javier [this message]
2015-07-23 23:09   ` How to bind isearch-repeat-forward to F3 in a certain mode only? Marcin Borkowski
2015-07-23 22:01 Marcin Borkowski
2015-07-24 12:53 ` Michael Heerdegen
2015-07-27 21:13   ` Marcin Borkowski
2015-07-27 21:43     ` Michael Heerdegen
2015-07-27 23:45     ` Emanuel Berg
2015-07-28  0:26       ` Ian Zimmerman
2015-07-28  1:07         ` Emanuel Berg
2015-07-28  8:30         ` Marcin Borkowski
2015-07-28 16:15           ` Yuri Khan
     [not found]         ` <mailman.7513.1438072243.904.help-gnu-emacs@gnu.org>
2015-07-28  8:42           ` Rusi
2015-07-28  8:50             ` Marcin Borkowski
2015-07-28 15:01             ` Ian Zimmerman
2015-07-28 15:28               ` Marcin Borkowski
     [not found]               ` <mailman.7552.1438097346.904.help-gnu-emacs@gnu.org>
2015-07-30  0:23                 ` Hikaru Ichijyo
2015-07-30  1:17                   ` Ian Zimmerman
2015-07-30  3:15                     ` Emanuel Berg
2015-07-30  5:10                       ` Ian Zimmerman
2015-07-30 22:36                         ` Emanuel Berg
     [not found]                   ` <mailman.7637.1438219082.904.help-gnu-emacs@gnu.org>
2015-07-30  1:48                     ` Hikaru Ichijyo
2015-07-30 12:56                     ` HASM
2015-07-30 22:37                       ` Emanuel Berg
     [not found]             ` <mailman.7551.1438095703.904.help-gnu-emacs@gnu.org>
2015-07-28 17:00               ` Rusi
2015-07-28  1:02       ` Marcin Borkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='morr8c$boe$1@speranza.aioe.org' \
    --to=nospam@nospam.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.