How do I turn off vhdl-mode in emacs?

前端 未结 2 1810
-上瘾入骨i
-上瘾入骨i 2021-01-16 15:01

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

2条回答
  •  不知归路
    2021-01-16 15:24

    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))
    

提交回复
热议问题