Emacs 筆記 a

Htmlize

Outline Mode

範例

可以參考 GNU Emacs NEWS (C-h n)

設定

;C-c @ 換成 C-o
(setq outline-minor-mode-prefix [(control o)])

TRAMP

Tramp Path Format

 /method:user@host:/path/or/relative/path

關掉 tramp 自動保存

(add-to-list 'backup-directory-alist
             (cons tramp-file-name-regexp nil))

sudo ,su

參考:emacs遠端sudo編輯檔案

遠端

C-x C-f /sudo:root@blah.blah2.org.tw:/etc/fstab

本地

C-x C-f /sudo::/etc/fstab

Woman

 ;; WoMan 不打開新的 frame
 (setq woman-use-own-frame nil)

Rmail

pop

 (setenv "MAILHOST" "pop3server")
 (setq rmail-primary-inbox-list '("po:username")
       rmail-pop-password-required t)

nXML

table

ibuffer

;; Turn on ibuffer
(global-set-key (kbd "C-x C-b") 'ibuffer)

EMMS

安裝

 $ sudo aptitude install emms mpg321

pluskid

在 Emacs 裡面使用 Stardict

Calendar ,Diary

參考:Calendar/Diary GNU Emacs Manual

Calendar

(setq chinese-calendar-celestial-stem
  ["甲" "乙" "丙" "丁" "戊" "己" "庚" "辛" "壬" "癸"])
(setq chinese-calendar-terrestrial-branch
  ["子" "丑" "寅" "卯" "辰" "巳" "戊" "未" "申" "酉" "戌" "亥"])

;; 設置星期一為每週的第一天
(setq calendar-week-start-day 1)
;; 標記calendar上有diary的日期
(setq mark-diary-entries-in-calendar t)
;; 為了突出有diary的日期,calendar上不標記節日
(setq mark-holidays-in-calendar nil)

;; 經緯度和地名,按 S 秀出日出日落時間
(setq calendar-latitude +25.3)
(setq calendar-longitude +121.3)
(setq calendar-location-name "Taipei")

Diary

 (setq diary-file "~/.emacs.d/diary")
 (setq diary-mail-addr "XXX@XXX.XXX")
 (add-hook 'diary-hook 'appt-make-list)
 

Customizing the Holidays

例如:July 14 Bastille Day

  (setq other-holidays
          '((holiday-fixed 7 14 "Bastille Day")
            (holiday-fixed 3 12 "Mohammed's Birthday")
            (holiday-fixed 4 2 "Jefferson's Birthday")))

Appointments

 (setq appt-issue-message t)

todo-mode

(setq todo-file-do "~/.emacs.d/do")
(setq todo-file-done "~/.emacs.d/done")
(setq todo-file-top "~/.emacs.d/top")

[ 書籤 | 搜尋 | blog | 留言 | Home ]

Firefox Emacs Muse Debian

最後更新 四月 25, 2008 , by alan

Creative Commons License
本 著作 係採用 創用 CC 姓名標示-非商業性-相同方式分享 2.5 台灣 授權條款授權.