[emacs] assimilate unkillable-scratch
authorAmin Bandali <amin@gnu.org>
Thu, 30 Aug 2018 22:13:39 +0000 (18:13 -0400)
committerAmin Bandali <amin@gnu.org>
Thu, 30 Aug 2018 22:13:39 +0000 (18:13 -0400)
make *scratch* and *Messages* unkillable

.gitmodules
init.org
lib/unkillable-scratch [new submodule]

index a4082c6..3f05fa9 100644 (file)
 [submodule "undo-tree"]
        path = lib/undo-tree
        url = git@github.com:emacsorphanage/undo-tree.git
+[submodule "unkillable-scratch"]
+       path = lib/unkillable-scratch
+       url = git@github.com:EricCrosson/unkillable-scratch.git
 [submodule "use-package"]
        path = lib/use-package
        url = git@github.com:jwiegley/use-package.git
index 8333a57..2fa171d 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1292,6 +1292,18 @@ Emacs package that displays available keybindings in popup
   (shell-pop-shell-type '("eshell" "*eshell*" (lambda nil (eshell)))))
 #+end_src
 
+** [[https://github.com/EricCrosson/unkillable-scratch][unkillable-scratch]]
+
+Make =*scratch*= and =*Messages*= unkillable.
+
+#+begin_src emacs-lisp
+(use-package unkillable-scratch
+  :config
+  (unkillable-scratch 1)
+  :custom
+  (unkillable-buffers '("^\\*scratch\\*$" "^\\*Messages\\*$")))
+#+end_src
+
 * Email
 ** [[https://notmuchmail.org][notmuch]]
 
diff --git a/lib/unkillable-scratch b/lib/unkillable-scratch
new file mode 160000 (submodule)
index 0000000..676a5a9
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 676a5a97658830caece18fa65a23e3d113933151