[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
- Re: Setting keybinding for org-support-shift-select t, (continued)
- Re: Setting keybinding for org-support-shift-select t, Emanuel Berg, 2020/10/04
- Re: Setting keybinding for org-support-shift-select t, Christopher Dimech, 2020/10/04
- RE: Setting keybinding for org-support-shift-select t, Drew Adams, 2020/10/04
- Re: RE: Setting keybinding for org-support-shift-select t, Christopher Dimech, 2020/10/04
- RE: RE: Setting keybinding for org-support-shift-select t, Drew Adams, 2020/10/04
- Re: RE: RE: Setting keybinding for org-support-shift-select t, Christopher Dimech, 2020/10/04
- RE: RE: RE: Setting keybinding for org-support-shift-select t, Drew Adams, 2020/10/04
- Re: RE: RE: RE: Setting keybinding for org-support-shift-select t, Christopher Dimech, 2020/10/04
- Re: Setting keybinding for org-support-shift-select t, Emanuel Berg, 2020/10/05
- Re: Setting keybinding for org-support-shift-select t, Emanuel Berg, 2020/10/04
- Re: Setting keybinding for org-support-shift-select t,
Emanuel Berg <=
- Re: Setting keybinding for org-support-shift-select t, Emanuel Berg, 2020/10/04
Re: Setting keybinding for org-support-shift-select t, Emanuel Berg, 2020/10/04