Emacs: globally enable whitespace-mode

前端 未结 1 901
日久生厌
日久生厌 2021-02-14 06:58

I want globally enable whitespace-mode. I have tried this in my .emacs:

(require \'whitespace)
(setq-default whitespace-style \'(face trailing lines empty indent         


        
1条回答
  •  暖寄归人
    2021-02-14 07:01

    In general it's best to enable/disable modes by using the function call, not setting the variable (which is what you did for global-whitespace-mode).

    Try:

    (global-whitespace-mode 1)
    

    0 讨论(0)
提交回复
热议问题