简体   繁体   中英

How to make move-to-column with force option in Emacs insert spaces instead of tabs and spaces

When using (move-to-column col t) with column argument larger than end-of-line Emacs inserts a combination of spaces and tabs, depending on whether col ends on a tab stop or not.

How can I make it insert only spaces?

You need to set indent-tabs-mode to nil , either using setq-default :

(setq-default indent-tabs-mode nil)

or customize :

(custom-set-variables '(indent-tabs-mode nil))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM