]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-lib.el
Don't use kill-this-buffer to kill notmuch emacs buffers
[notmuch] / emacs / notmuch-lib.el
index abcbfa1f99b8b0f3b0e9e9bb2f409a314d39dd94..dfdcd0520b021e101acc2c105616c720b46c2f1a 100644 (file)
@@ -87,6 +87,11 @@ the user hasn't set this variable with the old or new value."
   "Return the user.primary_email value from the notmuch configuration."
   (notmuch-config-get "user.primary_email"))
 
+(defun notmuch-kill-this-buffer ()
+  "Kill the current buffer."
+  (interactive)
+  (kill-buffer (current-buffer)))
+
 ;;
 
 ;; XXX: This should be a generic function in emacs somewhere, not