syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.58k stars 4.9k forks source link

remapping helm keybindings #16040

Open 88-percent opened 1 year ago

88-percent commented 1 year ago

Remapped helm keybindings don't stick until I've reloaded my configuration.

I've added the following to my user-config

(define-key helm-map (kbd "C-;") 'helm-toggle-visible-mark)

but trying to invoke the command returns: [C-; is undefined]

C-; does not appear in the command list after invoking describe-keymap helm-map

Bizarrely, reloading my config (space f e R) fixes the problem, but only until emacs is shutdown. describe-keymap helm-map shows C-; as correctly assigned to helm-toggle-visible-mark. The shortcut then works as expected.

I've also tried wrapping the function in with-eval-after-load 'helm but the issue persists.

Not sure if this is a bug or user error. If the latter, any direction is appreciated.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!