*scratch* バッファを kill-buffer できなくする.
Emacs 24 から入っている emacs-lock-mode というのを使う.
(require 'emacs-lock) (save-excursion (set-buffer "*scratch*") (emacs-lock-mode 'kill))
https://github.com/MrXcitement/emacs/blob/master/init-protbufs.el これを参考にした.
Emacs 24 から入っている emacs-lock-mode というのを使う.
(require 'emacs-lock) (save-excursion (set-buffer "*scratch*") (emacs-lock-mode 'kill))
https://github.com/MrXcitement/emacs/blob/master/init-protbufs.el これを参考にした.