从源码构建emacs

从源码构建emacs

获取版本信息

下载最新版本

wget http://mirrors.ustc.edu.cn/gnu/emacs/最新版本emacs.tar.xz

解压

tar -xf 最新版本emacs.tar.xz

编译安装emacs

进入目录后执行下面的命令

1
  ./configure --without-x --with-gnutls=no && chmod +x ./* && sudo make && sudo make install

非源码安装

emacs-snapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
apt install -y software-properties-common

sudo add-apt-repository ppa:ubuntu-elisp/ppa
sudo apt update
sudo apt install emacs-snapshot emacs-snapshot-el

emacs-snapshot --version    #查看emacs版本

# 如果要使用代理
# 添加并安装
add-apt-repository -y ppa:ubuntu-elisp/ppa
# apt update
apt-get -o Acquire::http::proxy="http://127.0.0.1:10808/" update
apt list | grep "^emacs"
# 安装 emacs25(包含 alist-get 函数)
# apt install -y emacs25
apt-get -o Acquire::http::proxy="http://127.0.0.1:10808/" install -y emacs25
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计