I would like to bind the function markdown-back-to-heading
to a keypress. The function is non-interactive, so I have to wrap it in an interactive function.
The following command should work:
(define-key markdown-mode-map (kbd "C-c C-h") 'markdown-back-to-heading)
Actual Behavior
Instead, pressing C-c C-h
throws an error: Wrong type argument: commandp, markdown-back-to-heading
.
(define-key markdown-mode-map (kbd "C-c C-h") 'markdown-back-to-heading)
C-c C-h
Debugger entered--Lisp error: (wrong-type-argument commandp markdown-back-to-heading)
call-interactively(markdown-back-to-heading nil nil)
command-execute(markdown-back-to-heading)
Software Versions
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4