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: Christopher Dimech
Subject: Re: Setting keybinding for org-support-shift-select t
Date: Sun, 4 Oct 2020 18:19:58 +0200

That's great, but if I want to fire my own function, I have used
the following to bind it to "<f2> q". But what if I want to use
"<f2> myagendaa" to fire the function myagenda

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

(global-set-key (kbd "<f1> q") 'myagenda)



> Sent: Sunday, October 04, 2020 at 4:02 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Setting keybinding for org-support-shift-select t
>
> Christopher Dimech wrote:
>
> > Let's try to do a simple thing [...]
> >
> > How can I use "<f1> agenda" to fire org-agenda.
>
> (require 'org)
>
> (defalias 'agenda #'org-agenda)
>
> (global-set-key [f1] #'execute-extended-command)
>
> --
> 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]