我在Emacs中设置了空白模式,仅显示标签,空格和硬空格。但是,我无法摆脱换行符。请参见以下屏幕截图,它们显示为灰色光标:
答案 0 :(得分:1)
您需要编辑emacs配置(您尚未向我们展示!)以从newline
BlankMode选项中删除blank-chars
元素。
根据BlankMode documentation,blank-chars选项确定BlankMode可以显示哪些空白字符。
来自blank-mode.el package的长文档:
(defcustom blank-chars
'(tabs spaces trailing lines space-before-tab newline
indentation empty space-after-tab)
"*Specify which kind of blank is visualized.
It's a list which element value can be:
trailing trailing blanks are visualized.
tabs TABs are visualized.
spaces SPACEs and HARD SPACEs are visualized.
lines lines whose have columns beyond
`blank-line-column' are highlighted.
Whole line is highlighted.
It has precedence over
`lines-tail' (see below).
lines-tail lines whose have columns beyond
`blank-line-column' are highlighted.
But only the part of line which goes
beyond `blank-line-column' column.
It has effect only if `lines' (see above)
is not present in `blank-chars'.
space-before-tab SPACEs before TAB are visualized.
newline NEWLINEs are visualized.
indentation 8 or more SPACEs at beginning of line are
visualized.
empty empty lines at beginning and/or end of buffer
are visualized.
space-after-tab 8 or more SPACEs after a TAB are visualized.
Any other value is ignored.