help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: RE: RE: Setting keybinding for org-support-shift-select t


From: Drew Adams
Subject: RE: RE: RE: Setting keybinding for org-support-shift-select t
Date: Sun, 4 Oct 2020 12:00:20 -0700 (PDT)

> Instead of using
> 
> (global-set-key [f2] #'execute-extended-command)
> 
> can I call my function directly,
> 
> (global-set-key "[f2] fnm" #'myfunction)

Not with that KEY argument to `global-set-key'.

You can bind your function to a legitimate KEY value.

(global-set-key (kbd "<f2> x") 'myfunction)

You need to read up on key bindings.  Start with
`C-h r key bindings', which takes you here, but
in Emacs:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Key-Bindings.html



reply via email to

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