IRC layers: Add the buffers to the persp
Right after initializing the custom layout, add the buffers to the persp.
This commit is contained in:
parent
c302ae4e67
commit
7f3267e48b
|
@ -182,7 +182,10 @@
|
|||
(spacemacs|define-custom-layout "@ERC"
|
||||
:binding "E"
|
||||
:body
|
||||
(call-interactively 'erc))
|
||||
(progn
|
||||
(add-hook 'erc-mode #'(lambda ()
|
||||
(persp-add-buffer (current-buffer))))
|
||||
(call-interactively 'erc)))
|
||||
;; do not save erc buffers
|
||||
(spacemacs|use-package-add-hook persp-mode
|
||||
:post-config
|
||||
|
|
|
@ -28,7 +28,10 @@
|
|||
(spacemacs|define-custom-layout "@RCIRC"
|
||||
:binding "i"
|
||||
:body
|
||||
(call-interactively 'spacemacs/rcirc))
|
||||
(progn
|
||||
(add-hook 'rcirc-mode-hook #'(lambda ()
|
||||
(persp-add-buffer (current-buffer))))
|
||||
(call-interactively 'spacemacs/rcirc)))
|
||||
;; do not save rcirc buffers
|
||||
(spacemacs|use-package-add-hook persp-mode
|
||||
:post-config
|
||||
|
|
Loading…
Reference in a new issue