Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何打开EmacsGUI_Emacs - Fatal编程技术网

如何打开EmacsGUI

如何打开EmacsGUI,emacs,Emacs,安装emacs的方法很多。它们都是一样的(就像我链接的那个) 我刚刚安装了Ubuntu 14.04的新版本,并安装了emacs。当我运行emacs测试文件时,它只是在终端窗口内运行emacs。我已经在网上搜索了所有的manemacs,但是我没有看到任何关于强制emacs使用GUI的信息 有人知道是否有秘密设置或命令行选项来切换默认使用GUI与终端模式吗?Ubuntu包emacs是一个元包,在14.04中取决于emacs24 emacs24是由emacs24 lucid和emacs24 nox提供

安装emacs的方法很多。它们都是一样的(就像我链接的那个)

我刚刚安装了Ubuntu 14.04的新版本,并安装了emacs。当我运行
emacs测试文件时,它只是在终端窗口内运行emacs。我已经在网上搜索了所有的
manemacs
,但是我没有看到任何关于强制emacs使用GUI的信息


有人知道是否有秘密设置或命令行选项来切换默认使用GUI与终端模式吗?

Ubuntu包
emacs
是一个元包,在14.04中取决于
emacs24

emacs24
是由
emacs24 lucid
emacs24 nox
提供的虚拟包

根据我在Ubuntu上的经验,
emacs lucid
通常会默认选择,但是如果您由于某种原因已经安装了
emacs nox
,依赖关系就会得到满足,因此您的
apt get install emacs
将不会安装emacs的图形版本


此外,即使安装了emacs的图形版本,也需要设置DISPLAY环境变量,以将其指向显示初始帧的位置。如果您没有在X窗口中运行命令shell,或者您使用了sudo或其他一些在shell会话中创建不同环境的命令,则可能无法设置DISPLAY(您可以使用
echo$DISPLAY
进行检查).

我投票将这个问题作为离题题来结束,因为它属于on。Ubuntu 14.04是在大约4年前发布的。你可能想考虑一个新的版本。@ SDS在文章中提出的明确问题是关于Emacs,而不是Ubuntu。Ubuntu被用作可复制性的特定实例。@抱歉,错过了你的其他评论,只是等待18.04即将发布,巴德。
sudo apt-get install emacs
emacs testfile        (SUPPOSED to runs the GUI)
emacs -nw testile     (-nw runs emacs in the terminal)