emacs -nw的不同设置


3

我想知道在我的.emacs文件中放置什么来进行不同的设置取决于我是否运行正常的emacs会话,或者我是否在终端中运行emacs emacs -nw

Answers:


4

您可以使用该变量 window-system-version 告诉你是否在终端上。如果这个变量是 nil,那就是终端模式。

示例.emacs:

(when window-system-version
  ;; setup for graphic environment
)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.