直接进行安装:
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 C-x C-c
Activate menubar M-`
(‘C-’ means use the CTRL key. ‘M-’ means use the Meta (or Alt) key.
If you have no Meta key, you may instead type ESC followed by the character.)
Useful tasks:
Visit New File Open Home Directory
Customize Startup Open *scratch* buffer
GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
of 2017-09-22, modified by Debian
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
Emacs is Free Software--Free as in Freedom--so you can redistribute copies
of Emacs and modify it; type C-h C-c to see the conditions.
Type C-h C-o for information on getting the latest version.
-UUU:%%--F1 *GNU Emacs* All L1 (Fundamental) ----------------------------------------------------------------------------------------------------------------
For information about GNU Emacs and the GNU system, type C-h C-a.
退出方法:先按ctrl+x然后按ctrl+c
按F10打开File标签:
后面的内容以后再写,暂时不想学了。
本文介绍了如何在Debian 9和Ubuntu 18.04上安装Emacs编辑器,分别默认安装了emacs24和emacs25版本。为了获取最新版emacs26,需要通过源码编译安装。启动Emacs后,可以通过特定快捷键组合退出程序和打开文件。
1893

被折叠的 条评论
为什么被折叠?



