Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/134.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
Windows上emacs 24.2.1中的自定义主题导致错误_Windows_Emacs_Themes - Fatal编程技术网

Windows上emacs 24.2.1中的自定义主题导致错误

Windows上emacs 24.2.1中的自定义主题导致错误,windows,emacs,themes,Windows,Emacs,Themes,因此,我可以在mac和linux机器上安装自定义主题,但无法在emacs windows安装上使用自定义主题 我可以毫无问题地将以下内容添加到我的~/.emacs文件中: (add-to-list 'custom-theme-load-path "~/.emacs.d/themes") 当我将下面的命令放入~/.emacs文件时: (load-theme 'tomorrow-night t) 它可以很好地找到该文件,但会因以下错误而停止: Symbol's value as variable

因此,我可以在mac和linux机器上安装自定义主题,但无法在emacs windows安装上使用自定义主题

我可以毫无问题地将以下内容添加到我的~/.emacs文件中:

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
当我将下面的命令放入~/.emacs文件时:

(load-theme 'tomorrow-night t)
它可以很好地找到该文件,但会因以下错误而停止:

Symbol's value as variable is void: <!--

符号作为变量的值无效:已解决,在windows 8中保存.el文件有一些有趣而奇怪的副作用。查看注释3以获得解决方案。

该文件中有什么内容?看起来它包含了一个HTML样式的注释。不幸的是,如果是这样的话,这将是一个很好的解决方法。我发现了问题,在windows 8中保存扩展名为.el而不是.el.txt的.el文件时,它会在每一行自动添加HTML标记。这种情况发生在chrome上,先选择原始文本,然后选择C-s。只是在Windows7上用Firefox和chrome(以及emacswiki.org上的一个文件)进行了尝试,我没有看到这种情况发生。很难相信Chrome在这方面的表现在Windows8上会有所不同。您是否保存了一个实际的HTML页面?例如,在EmacsWiki上,当您想要保存文件时,需要先单击“下载”,然后保存生成的纯文本页面。