Use the Mx basic-mode command, i.e.:
- Press (and hold) the meta key (usually the Alt key)
- Press x
This will move the cursor to the echo area at the bottom of the screen / frame. Enter fundamental mode and press the return key.
To permanently disable VHDL mode, you will need to change the file association with the extension used by emacs to associate the file extension with a specific main mode. You can do this by writing a .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))
source share