# Helpful: Adding Contextual Help to Emacs

DevFeed: [Helpful: Adding Contextual Help to Emacs](<https://devfeed.tech/articles/helpful-adding-contextual-help-to-emacs-22018.md>)

Original publisher: [Read original article](<http://www.wilfred.me.uk/blog/2017/08/30/helpful-adding-contextual-help-to-emacs/>)

Author: Wilfred Hughes

Published: 2017-08-30T00:00:00Z

Content type: release

Language: en

Sources: [Wilfred Hughes](<https://devfeed.tech/sources/wilfred-hughes.md>)

Topics: [Emacs](<https://devfeed.tech/topics/emacs.md>), [code search](<https://devfeed.tech/topics/code-search.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [code beautification](<https://devfeed.tech/topics/code-beautification.md>)

Tags: [aliases](<https://devfeed.tech/tags/aliases.md>), [buttons](<https://devfeed.tech/tags/buttons.md>), [emacs](<https://devfeed.tech/tags/emacs.md>), [help](<https://devfeed.tech/tags/help.md>), [keybindings](<https://devfeed.tech/tags/keybindings.md>), [refs](<https://devfeed.tech/tags/refs.md>), [source-code](<https://devfeed.tech/tags/source-code.md>)

## AI overview

Helpful extends Emacs' built-in help by showing a function's keybindings across keymaps, discoverable debug buttons for tasks such as removing stale function aliases, and docstrings with focused summaries and fontified text. It uses elisp-refs to show symbol references. For source display, it uses edebug properties for interactively defined functions, reconstructs an equivalent defun from a raw closure, or pretty-prints byte-compiled files when that is all Emacs can find. The excerpt identifies this as v0.1 and notes that bugs are expected.

## Source excerpt

I've just released Helpful, a new way of getting help in Emacs! The *Help* built-in to Emacs is already pretty good. Helpful goes a step further and includes lots of contextual info. Let's take a look. Have you ever wondered which major modes have a keybinding for a function? Helpful reports keybindings in all keymaps! When you're hacking on some new code, you might end up with old function aliases after renaming a function. Helpful provides discoverable debug buttons, so you don't need to remember fmakunbound. Helpful also has strong opinions on viewing docstrings. Summaries are given focus, and text is fontified. We solve the text-quoting-style debate by removing superfluous puncuation entirely. Helpful will even show all the references to the symbol you're looking at, using elisp-refs. This is great for understanding how and where a function is used. Finally, Helpful will rifle through your Emacs instance to find source code to functions: If you've defined a function interactively, Helpful will use edebug properties to find the source code. If Emacs can only find the raw closure, helpful will convert it back to an equivalent defun. If Emacs can only find the byte-compiled files, helpful will just pretty-print that. I've just released v0.1, so there will be bugs. Please give it a try, and let me know what you think, or how we can make it even more, well, helpful!