Emacs: Show Variable Value and Doc
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
- type the variable name in a buffer
- Alt+x
eval-last-sexp. - Result is shown in Messages Buffer
Sample Variables
- user-init-file
- tab-width
- load-path
- find-file-hook