[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keybinding Cycle for various Capture and Agenda Setups
From: |
daniela-spit |
Subject: |
Re: Keybinding Cycle for various Capture and Agenda Setups |
Date: |
Sun, 29 Nov 2020 22:27:38 +0100 |
> Sent: Sunday, November 29, 2020 at 10:05 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: Keybinding Cycle for various Capture and Agenda Setups
>
> daniela-spit wrote:
>
> OK, I have NO IDEA :D what you are doing, but -
>
> > (defun typh-capture-set-instance (n)
> >
> > [...]
> >
> > (defun typh-agenda-set-instance (n)
>
> but then
>
> > (typh-capture-set-instance)
> >
> > [...]
> >
> > (typh-agenda-set-instance)
>
> where's the n?
Is that the problem?
> And, style points:
>
> > (when (not
>
> when not is `unless'!
Ok, Right.
> > (global-set-key (kbd "H-a") #'typh-cycle-cap-agn)
>
> You don't need the `kbd'. (ha)
>
> Have you set up H as a prefix key? If so,
Yes, I have.
> (global-set-key "\H-a" #'typh-cycle-cap-agn)
I use it as it is easier for those reading, as it is similar
to the way keybindings are described in the manual.
> Good look!
>
> luck :)
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>