spacemacs/layers/+chat/slack/funcs.el
syl20bnr fea035f413 Make custom layout configs consistent
Use a use-package hook and avoid using lambdas.
Use same naming for all config.
2018-01-09 23:01:34 -05:00

23 lines
574 B
EmacsLisp
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;;; funcs.el --- Python Layer functions File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; persp
(defun spacemacs//slack-persp-filter-save-buffers-function (buffer)
"Filter for slack layout."
(with-current-buffer buffer
(eq major-mode 'slack-mode)))
(defun spacemacs//slack-buffer-to-persp ()
"Add buffer to slack layout."
(persp-add-buffer (current-buffer)))