1

What does this backslash syntax mean?

(defun elfeed-search-mode ()
  "Major mode for listing elfeed feed entries.
\\{elfeed-search-mode-map}"
  (interactive)
1
  • 1
    It's \\{, not just two backslashes, and it's in a doc string, not a comment.
    – Drew
    Commented Jun 27, 2018 at 22:09

1 Answer 1

2

This form expands to a summary of a keymap.

From (elisp) Keys in Documentation:

\{MAPVAR}
stands for a summary of the keymap which is the value of the variable MAPVAR. The summary is made using describe-bindings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.