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"
|
(spacemacs|define-custom-layout "@ERC"
|
||||||
:binding "E"
|
:binding "E"
|
||||||
:body
|
:body
|
||||||
(call-interactively 'erc))
|
(progn
|
||||||
|
(add-hook 'erc-mode #'(lambda ()
|
||||||
|
(persp-add-buffer (current-buffer))))
|
||||||
|
(call-interactively 'erc)))
|
||||||
;; do not save erc buffers
|
;; do not save erc buffers
|
||||||
(spacemacs|use-package-add-hook persp-mode
|
(spacemacs|use-package-add-hook persp-mode
|
||||||
:post-config
|
:post-config
|
||||||
|
|
|
@ -28,7 +28,10 @@
|
||||||
(spacemacs|define-custom-layout "@RCIRC"
|
(spacemacs|define-custom-layout "@RCIRC"
|
||||||
:binding "i"
|
:binding "i"
|
||||||
:body
|
: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
|
;; do not save rcirc buffers
|
||||||
(spacemacs|use-package-add-hook persp-mode
|
(spacemacs|use-package-add-hook persp-mode
|
||||||
:post-config
|
:post-config
|
||||||
|
|
Loading…
Reference in a new issue