Ubuntu安装Emacs(转载)

1. 前期准备工作

操作系统Ubuntu 14.04 STL
修改更新源,更新系统,安装必要软件

$ cd /etc/apt
$ wget -c http://mirrors.163.com/.help/sources.list.trusty
$ mv sources.list sources.list.bak
$ mv sources.list.trusty sources.list
$ apt-get update
$ apt-get upgrade
$ apt-get install git zsh tmux curl

2. 安装基础构件工具

$ sudo apt-get install build-essential

3.下载emacs编译需要的依赖库

sudo apt-get build-dep emacs24

4.下载emacs24.5编译安装

wget -c http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.gz
tar zxf emacs-24.5.tar.gz
./configure  --with-x-toolkit=no
make
make install

5.下载并安装我的emacs配置文件

git clone https://github.com/robin-liu-1983/emacs-robin.d.git
cd emacs-robin.d
cp -rf emacs.d ~/.emacs.d

6. 配置tmux和zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" cp tmux.conf ~/.tmux.conf cp zshrc-linux ~/.zshrc

猜你喜欢

转载自www.cnblogs.com/lhdcg/p/9925170.html