如何在emacs中关闭vhdl-mode? [英] How do I turn off vhdl-mode in emacs?

查看:186
本文介绍了如何在emacs中关闭vhdl-mode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习emacs,并尝试编写一个简单的vhdl程序进行测试。我可以看到,vhdl模式可能是一个有趣的功能,但我想知道如何可以暂时关闭它,以及稍后可以重新激活它。

解决方案

使用命令 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆