Emacs: Show Variable Value and Doc

By Xah Lee. Date: . Last updated: .

Show Variable Doc

Alt+x describe-variable
Show a variable's inline documentation and its current value.

🛑 WARNING: some variable are Buffer Local Variable. When looking up a buffer local variable, be sure you are in the right buffer when calling describe-variable.

Show Variable Value

via describe-variable

Alt+x describe-variable

via eval-last-sexp

  1. type the variable name in a buffer
  2. Alt+x eval-last-sexp.
  3. Result is shown in Messages Buffer

Sample Variables

Elisp, Doc Lookup

Elisp, Variable