2009-12-09 62 views

回答

4

將此添加到您的.emacs文件應該做的伎倆。顯然爲scratch buffer定製文件。

(defvar scratch-buffer-file-name "~/sktch.el" 
    "file name for *scratch* buffer") 

(defun synch-scratch-with-file() 
    "replace *scratch* buffer with the file scratch-buffer-file-name" 
    (save-window-excursion 
    (find-file scratch-buffer-file-name) 
    (kill-buffer "*scratch*") 
    (rename-buffer "*scratch*") 
    (lisp-interaction-mode))) 
(synch-scratch-with-file)