-1

Windows 10, Emacs 25.1

In my init.el

(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action)

But on start Emacs I get error:

Symbol's value as variable is void: helm-map
user8542613
  • 643
  • 6
  • 16
  • 3
    That variable would only be defined after `helm` is loaded. You'd need to either `require` it, or wrap that code in `with-eval-after-load`. – wvxvw Sep 27 '17 at 07:22
  • @wvxvw This question is also addressed in https://stackoverflow.com/questions/15995754/for-emacs-how-to-bind-keys-only-in-certain-action. There they use `helm-find-files-map`. – Tobias Sep 27 '17 at 07:35
  • Apparently their earlier duplicate question taught them nothing. This should be closed. – phils Jul 29 '23 at 11:56

1 Answers1

0

I had a similar error:

variable fails due to missing definition of "helm-bookmark-map"

You can remove the helm and force the reinstall. (so basically remove the helm file/folder under elpa)

Remove .emacs.d/elpa/helm-* and restart emacs? This should force a reinstall of helm with the pinned version.

This worked for me in spacemacs.

Stryker
  • 131
  • 4