2011年7月30日 星期六

Fedora放棄

Fedora 因為每次重灌nvidia顯卡驅動就自動失敗給我看,加上重灌Fedora的不人性化(導致我Ext3磁碟槽都全部被格式化~_~!!!!!!),
所以決定轉移陣地,改到Ubuntu

emacs 跨平台配置(el-get安裝步驟)

我的Emacs跨平台配置需求:
1.整合的.emacs檔,但不考慮用同一個Home資料夾(所以使用load外部el檔法)
2.能一個安裝檔或一個.emacs檔或一個網址,自動安裝所有需要的相關配置(目前階段先只有elsip 外部組件,未來考慮可攜式)
3.因為需求2關係,需要(el-get)

因為以上需求(我龜毛)
所以測試了el-get
發現大部份Windows Emacs都無法連Https,
原因是emacs使用gnutls 都不正常(已測試過不是gnutls的錯)
所以解決方法
1.找到此版安裝emacs-20110725-bin-i386.zip
網址 http://alpha.gnu.org/gnu/emacs/windows/
2.安裝後還需要gnutls,我用的是gnutls-2.10.0.exe
網址:http://josefsson.org/gnutls4win/
3.以及Git,我用的是Git-1.7.6-preview20110708.exe
網址:http://code.google.com/p/msysgit/
4.以上兩個安裝好後,照el-get官網資料,開啟emacs
5.按C-x b切換成*scratch*
6.貼上以下內容

;; So the idea is that you copy/paste this code into your *scratch* buffer,
;; hit C-j, and you have a working el-get.
(url-retrieve
"https://github.com/dimitri/el-get/raw/master/el-get-install.el"
(lambda (s)
(end-of-buffer)
(eval-print-last-sexp)))

7.按C-j
8.如果安裝成功,會出現 Congrats, el-get is installed and ready to serve!
9.OK

PS:
1.可攜式軟體配置
windows 參考http://wiki.kmu.edu.tw/index.php/%E5%8F%AF%E6%94%9C%E5%BC%8F%E8%BB%9F%E9%AB%94
Linux 參考(雖然不大正確)
http://allenown.blogspot.com/2008/10/portable-ubuntu-for-windows.html
2.git和gnutls都有可攜版,可以考慮自行整合程可攜版
git可攜版:PortableGit-1.7.6-preview20110709.7z
網址:http://code.google.com/p/msysgit/downloads/detail?name=PortableGit-1.7.6-preview20110709.7z
gnutls可攜版:
網址:http://josefsson.org/gnutls4win/gnutls-2.9.12.zip