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:
Alejandro Catalina Feliú 2016-01-10 14:29:01 +01:00 committed by syl20bnr
parent c302ae4e67
commit 7f3267e48b
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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