Thursday, January 05, 2006

Meadow3 その4 sessionの設定

session.elの設定

以下を.emacsに追加
(when (locate-library "session")
(setq session-save-file "~/.Meadow3/.session")
(setq session-globals-max-size 4096) ;; default 50
(setq session-globals-max-string 2048) ;; default 1024
(setq session-registers-max-string 2048) ;; default 1024
(setq session-menu-max-size 60) ;; default 30
(setq session-file-menu-max-string (quote (100 . 40)))
;; default Max. length:50 / Name threshold:20
(setq session-edit-menu-max-string 100) ;; default 50
(setq session-globals-regexp "-\\(ring\\|history\\|hist\\)\\'")
(eval-after-load "session"
'(progn
(defadvice find-alternate-file
(before session-store-buffer-places last activate)
"Invoke session-kill-buffer-hook."
(session-kill-buffer-hook))
(add-to-list 'session-kill-buffer-commands 'find-alternate-file)
(add-to-list 'session-globals-exclude 'howm-view-summary-shell-hist)
))
)

Comments:

Post a Comment