到目前为止,如果编辑. html文档,则会调用原有的html主方式。
So far, if you edit an.html document, the old HTML major mode will be invoked.
清单 5 中的第一部分告诉 Emacs,当装入带有特定扩展名的文件时,调用哪种主方式,这与 Windows 中根据文件类型关联应用程序的方法类似。
The first section of Listing 5 tells Emacs which major mode to invoke when you load a file with a particular extension, similar to the way Windows associates application based on file type.
用同样的方式,你可以从主应用程序逻辑隐藏其他事件类。
You can hide other event classes from the main application logic in the same way.
应用推荐