以下代码仅在基本模式下生成新缓冲区,我一直无法弄清楚如何让新的暂存缓冲区在文本模式下自动生成。. . 任何帮助将不胜感激。
(setq initial-major-mode 'text-mode)
(defun new-frame-with-scratch ()
"Open a new frame with scratch buffer selected"
(interactive)
(let ((frame (make-frame)))
(select-frame-set-input-focus frame)
(if (get-buffer-create "*lawlist*" )
(switch-to-buffer "*lawlist*" 'norecord))))