[Top][All Lists]

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

global-bind a function key

From: Glen Stark
Subject: global-bind a function key
Date: Wed, 20 Feb 2013 08:29:16 GMT
User-agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://


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

I'm using emacs 24.2.1

Following the instructions here:

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?  



reply via email to

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