How can I make emacs highlight lines that go over 80 chars?

后端 未结 8 1576
不思量自难忘°
不思量自难忘° 2020-12-01 02:18

I know there are solutions to making emacs show the 80 line column, but I don\'t want that sort of visual disturbance. I\'d just like to make it highlight a line if it\'s ov

8条回答
  •  星月不相逢
    2020-12-01 02:32

    Here's my config from Emacs Dev Kit:

    ;; whitespace-mode
    ;; free of trailing whitespace and to use 80-column width, standard indentation
    (setq whitespace-style '(trailing lines space-before-tab
                                      indentation space-after-tab)
          whitespace-line-column 80)
    

    Basically you need just the last bit, but I find the other settings quite useful (I hate tabs and trailing whitespaces).

提交回复
热议问题