ubuntu 12.04下使用Emacs 24搭建python开发环境


(For all new to Emacs:

    M-x : Press Alt and x 

    C-x : Press Ctrl and x )

(system information:

    ubuntu 12.04 LTS x64 + Emacs 24.3.1)


 

Table of Content:

1.Change color theme

2.YASnippet

3.auto-compelete

 


1. Change color theme:

      1.1 Editing the dotfile .emacs

1 emacs .emacs

      1.2 Adding below text into dotfile

1 (add-to-list ‘load-path "~/.emacs.d/")
2 (require ‘color-theme)
3 (color-theme-initialize)

      1.3 These 3 lines above are essential, the one below is for choosing your favourite color theme, take color-theme-matrix as an example.

1 (color-theme-matrix)

      1.4 The version 24 of Emacs has many built-in color themes, you could use command M-x color-theme-select to view all themes.


2. Yasnippet

      2.1 Git clone package into ~/.emacs.d/plugins/ directory

1 cd ~/.emacs.d/plugins/
2 git clone --recursive https://github.com/capitaomorte/yasnippet

      2.2 Editing the dotfile .emacs

1 (add-to-list load-path"~/.emacs.d/plugins/yasnippet")
3 (require yasnippet)
4 (yas-global-mode 1)

      2.3 Rebooting Emacs, if you see YASippet in your menu bar, congrats!

3. Auto-complete

 

 

 

ubuntu 12.04下使用Emacs 24搭建python开发环境,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。