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

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

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


From: Emanuel Berg
Subject: Re: Setting keybinding for org-support-shift-select t
Date: Sun, 04 Oct 2020 21:10:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Christopher Dimech wrote:

> The following gives me problems if I have
> keybindings associated with <f1> such as "<f1> q"
> to display agenda
>
> (global-set-key [f1] #'execute-extended-command)
>
> Next is my code
>
> ( defun myagendaa ()
>     (interactive)
>     (org-agenda)
> )
>
> (global-set-key (kbd "<f1> q") 'myagendaa)
>
> (defalias 'agenda #'myagenda)
> (global-set-key [f1] #'execute-extended-command)
>
> When I hit <f1>, it is showing as though I hit
> <M-x>

??? are you for real?

If you want to bind a shortcut to a command, then
yes, something like this is enough:

(require 'org-agenda)

(defun agenda ()
  (interactive)
  (org-agenda) )

(global-set-key [f1 ?q] #'agenda)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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