正如标题所问的,为什么要自定义Emacs变量“sgml mode”(来自文件"sgml-mode.el")?在“(定义派生的-模式sgml-模式文本模式”(sgml-xml-模式"XML“”sgml“)中”有一行“(set (make- local -变量'sgml-xml-mode) (sgml-xml-猜测)”使变量缓冲区局部性,并使用函数“sgml-xml-猜测”为其提供一个值,那么定制该变量对什么有好处呢?
例如,创建一个缓冲区"new“并将其模式设置为"html- mode”,结果是"sgml-xml-mode“具有本地值为零--即使定制将全局值设置为t。
变量的定义如下:
(defcustom sgml-xml-mode nil
"When non-nil, tag insertion functions will be XML-compliant.
It is set to be buffer-local when the file has
a DOCTYPE or an XML declaration."
:type 'boolean
:version "22.1"
:group 'sgml)我正在使用:
GNU Emacs 23.3.1 (i 386-mingw-nt5.1.2600)
一个相关的问题是Make emacs always close html tags。
发布于 2012-03-28 14:32:15
只是个历史上的意外。我不确定这个问题在这里是否合适,BTW。
https://stackoverflow.com/questions/9893495
复制相似问题