Emacs: Show Variable Value, List Variables

By Xah Lee. Date: . Last updated: .

Show Variable Value

Alt+x describe-variable
Show a variable's documentation and its current value. Can also be used to list variables matching a substring. (be sure to turn on fido-vertical-mode for flex-matching [see Emacs: icomplete mode, fido mode])

For example, here's some emacs builtin variables. Try to find their value:

Another way to find the value of a variable is: type the variable in a buffer, then Alt+x eval-last-sexp

Result is shown in Messages Buffer

List Variables

Alt+x apropos-variable
Show variables that match PATTERN. Note: this does not show arbitrary elisp variables such as (setq xxx 3). Only those declared defvar, defconst, defcustom.

see also Emacs: Search Documentation, List Commands


Emacs Init

Init Basics

Keys

Font

Text Editing

Completion

File

Restore Things

Backup/AutoSave

Line

Appearance

Misc

Advanced Init Tips

packages

ErgoEmacs mascot-s276x226
Buy Xah Emacs Tutorial