跳到主要內容

在 emacs 裡使用 pari-gp

這真是一個難設定的東西。雖然不知道這樣對不對,但至少是 work 的,記下來,免得下次又忘了。

安裝 pari-gp 和 emacs
# apt-get install pari-gp
如果直接 apt-get install emacs,通常裝的會是較新的版本,以這幾週的情況看起來,在 ubuntu 9.10 上至少會裝到 22.2 版,不過這一版以上都無法順利按照說明檔設定。最後裝了 21.1 版才 OK。

接著應該會在 /usr/local/share/emacs/site-lisp 看到一堆 *.el 或 *.elc 檔,以 21.1 版來看,就是全部複製到 /usr/local/share/emacs/21.1/ 之下。然後在自己的 home 下新增 .emacs 檔,加入下列:

(autoload 'gp-mode "pari" nil t)
(autoload 'gp-script-mode "pari" nil t)
(autoload 'gp "pari" nil t)
(autoload 'gpman "pari" nil t)
(setq auto-mode-alist
(cons '("\\.gp$" . gp-script-mode) auto-mode-alist))

(load "/usr/share/doc/pari-gp/emacs/pari.el" nil t)

存檔。然後啟動 emacs,照使用手冊上說的,按 alt+x 後,在下方會出現 M-x,然後打 gp,這樣就可以使用 pari-gp 了。

留言

這個網誌中的熱門文章

[lyrics] Imagine

Title: Imagine Artist: John Lennon Imagine there's no Heaven It's easy if you try No hell below us Above us only sky Imagine all the people Living for today Imagine there's no countries It isn't hard to do Nothing to kill or die for And no religion too Imagine all the people Living life in peace You may say that I'm a dreamer But I'm not the only one I hope someday you'll join us And the world will be as one Imagine no possessions I wonder if you can No need for greed or hunger A brotherhood of man Imagine all the people Sharing all the world You may say that I'm a dreamer But I'm not the only one I hope someday you'll join us And the world will live as one ----------------------------- 這首歌和歌詞是早就知道的,最近又再次聽起它並認真的讀了歌詞 真的,很感動,多麼美好的世界~ (遠目) 真的也無法形容浮現在腦中的畫面.... 只能用心來感受它吧! 同樣的東西在不同的時間下會有新的,全然不同的感受.... 也有許多事情,是要親自走過、痛過、經歷過,才能了解那份感受 寫這個沒什麼意義,只是紀錄當下的感覺罷了!

白揚瀑布

 

健保卡代號

IC卡載入後,欄位代碼之表示為: *(1)代表「同意器官捐贈,不同意安寧緩和醫療」 *(4)代表「同意器官捐贈,同意安寧緩和醫療,同意不 施行心肺復甦術」 *(7)代表「不同意器官捐贈,同意安寧緩和醫療,同意 不施行心肺復甦術」 *未註記 p.s: 今天看牙醫順便請醫生幫我看一下,醫生說是代號(4),簽成功了 :) ref: http://www.tho.org.tw/xms/read_attach.php?id=259