有沒有辦法讓文字模式下的不同面孔渲染一個單詞?Emacs文本模式突出顯示
1
A
回答
5
查看`highlight-regexp'。只需輸入你想改變面部的單詞(雖然它可以是任何正則表達式)。
M-X亮點,正則表達式
highlight-regexp is an alias for `hi-lock-face-buffer' in
`hi-lock.el'.
It is bound to M-s h r.
(highlight-regexp regexp &optional face)
Set face of each match of regexp to face.
Interactively, prompt for regexp then face. Buffer-local history
list maintained for regexps, global history maintained for faces.
Use M-p to retrieve previous history items,
and M-n to retrieve default values.
1
是,
你想要的是字體鎖定模式。
在這裏看到:http://www.gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html
具體你要打開font-lock-mode
,然後通過font-lock-add-keywords
指定關鍵字的列表。
相關問題
- 1. emacs magit diff突出顯示
- 2. Emacs區域突出顯示
- 3. 括號突出顯示 - emacs
- 4. 刪除Emacs突出顯示
- 5. Emacs w3m將突出顯示的區域導出爲文本
- 6. Algolia - 格式突出顯示的文本只顯示突出顯示的部分
- 7. 評論字符串修復emacs ruby模式突出顯示
- 8. 突出顯示的標題在Emacs RST-模式
- 9. 突出顯示Lisp表單的Emacs模式
- 10. emacs xterm鼠標模式雙擊以突出顯示單詞
- 11. 變量只在聲明中突出顯示? (Emacs的c + +模式)
- 12. Emacs在C++中的不完全突出顯示模式
- 13. Emacs lua模式語法突出顯示不起作用
- 14. 突出顯示文本
- 15. 突出顯示文本,住
- 16. 突出顯示的文本
- 17. 突出顯示文本programmaticly
- 18. 突出顯示文本CSS
- 19. EditText突出顯示文本
- 20. CSS文本突出顯示
- 21. 突出顯示文本
- 22. 移動向上箭頭不會突出顯示文本emacs iterm2
- 23. 將div(模態)顯示爲接近突出顯示的文本
- 24. 在emacs字符串中突出顯示「」
- 25. emacs突出顯示背景更改
- 26. Emacs:持久突出顯示區域
- 27. Emacs上的Scaml語法突出顯示
- 28. Emacs匹配標籤突出顯示
- 29. 在emacs中突出顯示julia代碼
- 30. 奇怪的Emacs突出顯示問題
吧?在文本模式? – Bahbar 2009-11-05 21:25:55
當然,爲什麼不呢,你只需要爲文本模式添加一個鉤子。我剛剛在我的本地機器上完成了它。你認爲什麼不可能? – chollida 2009-11-05 21:32:21