我已经在Emacs中设置了空白模式,只显示标签,空格和硬空格。但是,我无法摆脱换行符。请参见下面的截图,它们被显示为灰色光标:如何在Emacs Blank模式下不显示换行符
1
A
回答
1
您需要编辑您的Emacs配置从blank-chars
BlankMode选项删除newline
元素(你还没有告诉我们!)。
根据BlankMode documentation,空白字符选项决定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.
相关问题
- 1. Emacs换行模式下的换行符
- 2. 在Emacs GUD(gdb)模式下显示ASCII控制字符
- 3. 如何在Emacs diff模式下配置高亮显示?
- 4. 只在行模式下高亮显示当前行(不在char模式下)
- 5. 如何在Emacs中显示PHP模式下的所有语法符号?
- 6. 如何在Emacs模式行中显示文件路径?
- 7. 如何显示Emacs模式行中的总行数
- 8. 如何在windows下使用mintty在CLI模式下运行emacs?
- 9. 如何使EMACS邪恶模式显示行号码
- 10. 在Emacs Shell模式dirtrack中显示TTY
- 11. emacs 24:如何获取python模式下的emacs-23 sexp行为?
- 12. 如何在模式下显示标题下方的模式
- 13. 如何阻止emacs使用< - 在ess模式下替换underbar
- 14. 显示在Emacs Shell模式下收到的stdout
- 15. 在emacs XML模式下,如何格式化XML模式文件?
- 16. 如何在jTemplate中显示换行符
- 17. 如何在Emacs启动时显示组织模式议程?
- 18. 如何让'emacs显示行号'文本模式钩似乎不工作?
- 19. Eldoc在Emacs的minibuffer中显示额外的换行符
- 20. 如何在emacs中设置shell模式提示符?
- 21. 如何在emacs-haskell模式下运行haskell应用程序?
- 22. 如何在emacs中以verilog模式禁用自动换行
- 23. 在emacs的模式行中显示书签名称
- 24. emacs:添加模式隐藏显示alist
- 25. Emacs文本模式突出显示
- 26. Emacs显示模式快捷键
- 27. 如何使Emacs显示中文字符
- 28. Emacs在C++中的不完全突出显示模式
- 29. 换行符在YAML中不显示?
- 30. 如何在UITableView编辑模式下不显示“ - ”删除按钮?
你可能会考虑换出BlankMode为[空白符(http://www.emacswiki.org/emacs/WhiteSpace),它已经取代了它。 – razlebe
那些投票迁移到超级用户 - [编程工具是关于这个主题](http://stackoverflow.com/faq#questions)。 – 2012-01-11 10:41:08