debian/ubuntu 上安装和使用 Emacs

本文介绍了如何在Debian 9和Ubuntu 18.04上安装Emacs编辑器,分别默认安装了emacs24和emacs25版本。为了获取最新版emacs26,需要通过源码编译安装。启动Emacs后,可以通过特定快捷键组合退出程序和打开文件。

直接进行安装:

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标签

后面的内容以后再写,暂时不想学了。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值