是否可以检查emacs是否在点emacs文件(.emacs)中的--no-window-system (-nw)模式下运行?我只想在emacs处于窗口模式时启用/包含某些扩展(/or不是)。
致以亲切的问候,mefiX
发布于 2010-10-05 16:41:21
如果选定的边框位于纯文字端子上,则变量window-system为nil。
发布于 2015-10-12 15:33:35
将emacs在窗口环境中执行时要运行的代码放在一个when块中,并使用display-graphic p谓词。
(when (display-graphic-p)
(do something)
(do-another-thing))或反转
https://stackoverflow.com/questions/3861857
复制相似问题