首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

uBuntu上emacs配置及其嵌入式环境搭建

2013-03-01 
uBuntu下emacs配置及其嵌入式环境搭建这是我在github上所存储的配置及其uBuntu环境的搭建。git://github.co

uBuntu下emacs配置及其嵌入式环境搭建

这是我在github上所存储的配置及其uBuntu环境的搭建。

git://github.com/sheepjxx/emacs_config.git

Emacs configuration on Linux

Install Guid

This guide is only for uBuntu 12.04 version, haven't been test on other OS. emacs "ecb" can not be installed using apt-get.

1. Install emacs on uBuntu 12.04
sudo apt-get install git git-svn gitk qgit emacs ecb cscope-el auto-complete-el git-el yasnippet icicles emacs-goodies-el doxymacs icicles

select the path of your emacs. Normally I install to /usr/share/emacs/site-lisp/. This is default directory that emacs search.

2. Download emacs configuration
git clone https://github.com/sheepjxx/emacs_config.git

3. Copy as default configuration
cp emacs_config ~/.emacs

4. exuberant-ctags configuration
sudo update-alternatives --install "/usr/bin/ctags" "ctags" "/usr/bin/ctags-exuberant" 1sudo update-alternatives --install "/usr/bin/etags" "etags" "/usr/bin/ctags-exuberant" 1 sudo update-alternatives --config ctagssudo update-alternatives --config etags

5. Copy all lisp files under lisp folder to /usr/share/emacs/site-lisp/
sudo cp -rf lisp /us/share/emacs/site-lisp/

6. Install packages from package management ELPA

For emacs version smaller than 23, you need to copy package.el under list to /usr/share/emacs/sit-lisp, emacs24 already has package.el buildin

M-x list-packages

Install ace-jump-mode lua-mode bookmark+ dired+

Install and config other useful tools

1. zsh (Awesome shell for Linux developer)
sudo apt-get install zsh

Instatll configuration from https://github.com/robbyrussell/oh-my-zsh

chsh -s /bin/zsh

Using "chsh" command to change zsh to default shell Modify ~/.zshrc file(ZSH_THEME parameter), change theme to one you love. I use "pygmalion" to create my theme which is stored in zsh folder.

2. config git for convenient
git config --global user.name "John Doe"git config --global user.email johndoe@example.comgit config --global core.editor emacsgit config --global alias.lg log --stat --graph --pretty=format:'%Cred%h%Creset by %an -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relativegit config --global alias.ci commitgit config --global alias.co checkoutgit config --global alias.br branch

Useful packages for developemnt
sudo apt-get install tree rpm rar unrar ssh curl freemind subversion meld python3

Useful packages for Embedded Linux developemnt
sudo apt-get install tftp tftpd nfs-kernel-server xinetd portmap libncurses5-dev openjdk-7-jre minicom linux  

热点排行