all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glen Stark <mail@glenstarkREMOVEME.net>
To: help-gnu-emacs@gnu.org
Subject: global-bind a function key
Date: Wed, 20 Feb 2013 08:29:16 GMT	[thread overview]
Message-ID: <wP%Us.784962$iq1.414547@en-nntp-12.dc1.easynews.com> (raw)

Hi.  

I feel like this should be really simple but I'm having a hard time 
anyway.

I'm using emacs 24.2.1

Following the instructions here: http://www.delorie.com/gnu/docs/emacs/
emacs_497.html

I have the following line in my .emacs file:

	(global-set-key [f5] 'convert-include-type)

(convert-include-type is a function of my own definition).  

If I evaluate the above lisp expression I get no errors, but pressing the 
F5 key produces the message "<SunOpen> is undefined", which is apparently 
the default keybinding for F5.  

If I run "global-set-key, f5, convert-include-type" from the minibuffer, 
everything works as expected.  

I tried a couple other syntaxes for keybinding an f5 key that I found on 
the web, but so far I have had no luck.  Can someone help me out?  

Thanks,

Glen


             reply	other threads:[~2013-02-20  8:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20  8:29 Glen Stark [this message]
2013-02-20 11:44 ` global-bind a function key Óscar Fuentes
2013-02-20 12:27 ` Jambunathan K
2013-02-20 12:28 ` Jambunathan K
2013-02-20 12:56 ` Glen Stark
2013-02-20 15:00 ` Drew Adams
2013-02-20 15:52 ` Stefan Monnier

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='wP%Us.784962$iq1.414547@en-nntp-12.dc1.easynews.com' \
    --to=mail@glenstarkremoveme.net \
    --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.