Emacs: Show Variable Value, List Variables
Show Variable Doc, Show Variable Value
- Alt+x
describe-variable
- Show a variable's documentation and its current value.
For example, here's some emacs builtin variables. Try to find their value:
- user-init-file
- tab-width
- load-path
- find-file-hook
Tip: Another way to show 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 declareddefvar
,defconst
,defcustom
.
Emacs/Elisp Doc Lookup
Emacs Init
Init Basics
Keys
Font
Text Editing
- Type Overwrite Selection
- Tab/Space/Indent Setup
- electric-pair-mode
- Isearch Whitespace Setup
- Move Cursor by camelCase
Completion
File
Restore Things
Backup/AutoSave
Line
- Show Line Numbers
- Show Cursor Column Position
- Highlight Current Line
- Setup Soft-Wrap Lines
- Hard-Wrap Lines
- Arrow Key Move by Logical Line
Appearance
- Highlight Brackets
- Set Color Theme
- Show Formfeed as Line
- Line Spacing
- Show lambda as λ
- Default Window Size
Misc
Advanced Init Tips
- What is Major Mode
- What is Minor Mode
- Show Variable Value, List Variables
- M-x customize
- Organize Init File
- Byte Compile Elisp
- What is Hook
- Avoid Lambda in Hook
- Environment Variables in Emacs
- Check OS, Version, Host Name