I use describe-function command with SPC h f to get help on emacs functions. But I want to get documentation on Doom's own functions such as map!. describe-function doesn't list this function. How can I get documentation on this and other custom functions?

  • 3
    That's a macro, but you should be able to get help on macros with describe-function github.com/hlissner/doom-emacs/blob/… Maybe the macro isn't loaded? Not very familiar with loading, and not at all with doom, but I think often interactive functions and macros are autoloaded and that this one isn't, maybe because it's not interactive? Surprises me if it's not loaded though, given the filename Feb 26 '21 at 19:33
  • 1
    If you evaluate this lisp in *scratch*, what does it say? (fboundp 'map!) Feb 26 '21 at 19:38
  • @CroadLangshan It returns t Feb 26 '21 at 20:00
  • Odd. In spacemacs, if I copy-paste that macro and evaluate it I can run describe-function on it and it shows up in the list (I think I'm actually getting counsel-describe-function that way, though -- maybe plain describe-function doesn't show macro help?? seems unlikely) Feb 26 '21 at 20:13
  • 1
    This seems to be something to do with ivy / counsel. If I disable ivy-mode and copy the definition of describe-function to describe-function-2 and evaluate that (to avoid counsel messing with it via advice or whatever), then run that, it works. Also in spacemacs (but not doom), if I put point somewhere in a buffer that says map!, describe-function lists it -- but otherwise, it doesn't show up. In doom it never shows up unless I go to the lenghs above. Feb 26 '21 at 20:39

When you use describe-function search for


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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