A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/415 below:

Make `markdown-back-to-heading` interactive · Issue #415 · jrblevin/markdown-mode · GitHub

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.

Expected Behavior

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.

Steps to Reproduce
  1. Evaluate (define-key markdown-mode-map (kbd "C-c C-h") 'markdown-back-to-heading)
  2. Open a buffer with Markdown mode
  3. Press C-c C-h
Backtrace
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