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

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

Re: command-execute: Wrong type argument: commandp, helm-command-prefix


From: Hongyi Zhao
Subject: Re: command-execute: Wrong type argument: commandp, helm-command-prefix
Date: Fri, 5 May 2023 13:13:14 +0800

On Fri, May 5, 2023 at 1:04 PM Michael Heerdegen
<michael_heerdegen@web.de> wrote:
>
> Ruijie Yu via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
> >     (autoload #'helm-command-prefix "helm-bibtex" nil t))
>                                                     ^^^^^
>
> Is this expected to work reliably?  AFAIU, the thing to be autoloaded is
> a keymap, not an interactive function.

But it really works smoothly, and you can check the example
configuration provided by the author of this package here [1]:

(require 'helm-config)

(global-set-key (kbd "<menu>") 'helm-command-prefix)

(define-key helm-command-map "b" 'helm-bibtex)
(define-key helm-command-map "B" 'helm-bibtex-with-local-bibliography)
(define-key helm-command-map "n" 'helm-bibtex-with-notes)
(define-key helm-command-map (kbd "<menu>") 'helm-resume)


[1] https://github.com/tmalsburg/helm-bibtex#key-bindings

> Michael.

Zhao



reply via email to

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