Emacs:检查.emacs中的无窗口系统 [英] Emacs: check for no-window-system in .emacs

查看:95
本文介绍了Emacs:检查.emacs中的无窗口系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以检查emac是否在中运行 - 无窗口系统 -nw )模式在dot-emacs文件( .emacs )?我想启用/包含某些扩展名,只有当emacs处于窗口模式(/或不)时。

is it possible, to check if emacs is running in --no-window-system (-nw) mode within the dot-emacs file (.emacs)? I would like to enable/include certain extension only if emacs is in window mode (/or not).

亲爱的,
mefiX

Kind regards, mefiX

推荐答案

变量 window-system nil 如果所选帧位于纯文本终端。

The variable window-system is nil if the selected frame is on a text-only terminal.

这篇关于Emacs:检查.emacs中的无窗口系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆