The Emacs set-variable Command

I learned a new Emacs command today. What do you do when you want to set an Emacs variable? Until today my answer was 【Meta+:】 and then

(setq some-variable some-value)

That works well and there’s nothing wrong with it but it’s often faster to use 【Meta+xset-variable instead. When you do that, Emacs will prompt you for the variable and its value. One of the reasons that this may be faster is that you can 【Tab】 to complete variable names.

This entry was posted in General and tagged . Bookmark the permalink.