如何在emacs中关闭vhdl-mode? [英] How do I turn off vhdl-mode in emacs?
问题描述
使用命令 Mx基本模式,即:
- 按(并按住)元键(通常是 Alt 键)
- 按 x
这将把光标移到底部的回音区域的屏幕/框架。键入基本模式,然后按返回。
要永久禁用VHDL模式,您将不得不更改文件由emacs使用的扩展映射将文件的扩展名与特定主要模式相关联。您可以通过编写自定义的 .emacs 配置文件来执行此操作。在emacs手册中查找 auto-mode-alist :
(setq auto-mode-alist (remove(rassoc'vhdl-mode auto-mode-alist)auto-mode-alist))
I am learning emacs at the moment and tried to write an easy vhdl program for testing. I can see that the vhdl-mode might be an interesting feature, but I would like to know how I can turn it off for the moment and how I can reactivate it later on.
Use the command M-x fundamental-mode, that is:
- Press (and hold) the meta key (which is usually the Alt key)
- Press x
This will take the cursor into the echo area at the bottom of the screen/frame. Type fundamental-mode and press return.
To disable VHDL mode permanently, you will have to change the file-extension mapping used by emacs to associate a file's extension with a particular major mode. You can do this by writing a custom .emacs configuration file. Look for auto-mode-alist in the emacs manual:
(setq auto-mode-alist (remove (rassoc 'vhdl-mode auto-mode-alist) auto-mode-alist))
这篇关于如何在emacs中关闭vhdl-mode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!