2012-10-31 44 views

回答

1

運行M-X定製面字體鎖註釋面並設置height屬性,與background和​​一起要如何評論加以強調。

要堅持這個會話之間,從定製屏幕上,選擇Save for future sessions或添加到您的.emacs

(custom-set-faces 
'(font-lock-comment-face ((t (:background "yellow" :foreground "red" :height 0.5))))) 
+0

請你給它的代碼?我想在.emacs文件中執行此操作。 – sudeepdino008

+0

您可以通過保存未來會話的自定義將其保存到'.emacs'。添加了這個代碼的答案。 – ataylor

+0

請注意:您不希望在'.emacs'中調用'custom-set-faces'多個調用。即如果你想改變幾個面,在相同的'custom-set-faces'中做。 – Stefan