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.