Quit buffers after /PART, /QUIT, /GQUIT
This commit is contained in:
parent
b965c0a0ed
commit
2d95e1efef
17
init.el
17
init.el
|
@ -229,9 +229,22 @@ AKA, DO NOT USE THIS FUNCTION!!!"
|
|||
(:bind "C-c C-p" #'circe-command-PART)
|
||||
|
||||
(:advise circe-command-PART :after
|
||||
(defun circe-command-PART@kill-buffer (&rest _)
|
||||
(defun circe-part@kill-buffer (&rest _)
|
||||
(let ((circe-channel-killed-confirmation nil))
|
||||
(kill-buffer))))
|
||||
(kill-buffer)))
|
||||
|
||||
circe-command-QUIT :after
|
||||
(defun circe-quit@kill-buffer (&rest _)
|
||||
(let ((circe-server-killed-confirmation nil))
|
||||
(with-circe-server-buffer
|
||||
(kill-buffer))))
|
||||
|
||||
circe-command-GQUIT :after
|
||||
(defun circe-gquit@kill-buffer (&rest _)
|
||||
(let ((circe-server-killed-confirmation nil))
|
||||
(dolist (buf (circe-server-buffers))
|
||||
(with-current-buffer buf
|
||||
(kill-buffer))))))
|
||||
|
||||
(:with-mode circe-chat-mode
|
||||
(:hook #'acdw/stop-paren-annoyances
|
||||
|
|
Loading…
Reference in New Issue