[emacs] aquamacs & latex

作者: dryman (dryman)   2013-10-27 14:55:13
以下是aquamacs emacs及latex設定筆記
適用2.5 stable & 3.x nightly
先看截圖
http://d.pr/i/ubXT
這是可編輯的preview mode,而不是pdf
每個方程式點擊即可編輯
實在是太威啦!
Aquamacs Emacs 的目標是out of box就可以使用
如果只要latex及preview功能的話,直接下載就可以使用了
唯一要注意的點是他的設定檔位在
~/Library/Preferences/Aquamacs\ Emacs/Preferences.el
其他一般放在.emacs.d/的檔案也都在那邊
2.5和3.x差在那邊呢?
2.5使用的是emacs 23.x, 3.x使用的是24.x
要到3.x才能使用附帶的package manager
elpa的檔案會存在
~/Library/Preferences/Aquamacs\ Emacs/elpa/
如果是設定狂,可以使用3.x
如果只是需要用out of box latex editor,2.5就很夠用了
* * *
除了aquamacs內建的package外,我還安裝了yasnippet
yasnippet是emacs的textmate外掛
操作方法很簡單,就是關鍵字+tab,非常好上手
這是少數我覺得git clone比使用package-install好安裝的套件
安裝方法也不難:
$ mkdir -p ~/.emacs.d/plugins
$ cd ~/.emacs.d/plugins
$ git clone https://github.com/capitaomorte/yasnippet
In .emacs or Preferences.el:
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(setq yas-snippet-dirs '("~/.emacs.d/plugins/yasnippet/snippets"))
(yas-global-mode 1)
重新啟動emacs,就能看見選單中有yasnippet的操作功能了
latex排版精美,只是撰寫內容真的很冗長
Aquamacs Emacs附帶的preview功能使編輯環境清爽
而yasnippet解決大量重複撰寫的繁雜工作
用過後就回不去了XD
作者: padding (100px;)   0000-00-00 00:00:00
看起來好棒阿 但emacs指令還是覺得很難記

Links booklink

Contact Us: admin [ a t ] ucptt.com