直接进行安装:
sudo apt update
sudo apt install emacs
在debian 9上安装的版本是emacs24,在ubuntu 18.04上安装的版本是emacs25,目前最新版是emacs26,如果想安装最新版,需要从源码编译安装:GNU Emacs download - GNU Project
安装完成后在命令行中输入emacs
打开程序,界面如下:
File Edit Options Buffers Tools Help
Welcome to GNU Emacs, one component of the GNU/Linux operating system.
Get help C-h (Hold down CTRL and press h)
Emacs manual C-h r Browse manuals C-h i
Emacs tutorial C-h t Undo changes C-x u
Buy manuals C-h RET Exit Emacs