2015-11-09 05:25:39 +00:00
|
|
|
;;; config.el --- Spacemacs Layouts Layer configuration File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-11-09 05:25:39 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-11-09 05:25:39 +00:00
|
|
|
|
|
|
|
;; Variables
|
|
|
|
|
|
|
|
(defvar spacemacs-layouts-directory
|
|
|
|
(expand-file-name (concat spacemacs-cache-directory "layouts/"))
|
|
|
|
"Save layouts in this directory.")
|
|
|
|
|
|
|
|
(defvar layouts-enable-autosave nil
|
|
|
|
"If true, saves perspectives to file per `layouts-autosave-delay'")
|
|
|
|
|
|
|
|
(defvar layouts-autosave-delay 900
|
|
|
|
"Delay in seconds between each layouts auto-save.")
|
2016-02-27 14:28:01 +00:00
|
|
|
|
2019-10-13 02:51:27 +00:00
|
|
|
(defvar spacemacs--layouts-ts-full-hint-toggle nil
|
|
|
|
"Toggle display of layouts transient-state documentation.")
|
|
|
|
|
|
|
|
(defvar spacemacs--workspaces-ts-full-hint-toggle nil
|
|
|
|
"Toggle display of workspaces transient-state documentation.")
|
2016-03-21 01:48:06 +00:00
|
|
|
|
2016-02-27 14:28:01 +00:00
|
|
|
(defvar spacemacs--last-selected-layout dotspacemacs-default-layout-name
|
|
|
|
"Previously selected layout.")
|
|
|
|
|
|
|
|
(defvar spacemacs--custom-layout-alist nil
|
|
|
|
"List of custom layouts with their bound keys.
|
|
|
|
Do not modify directly, use provided `spacemacs|define-custom-layout'")
|
|
|
|
|
|
|
|
(defvar spacemacs--layouts-autosave-timer nil
|
|
|
|
"Timer for layouts auto-save.")
|
2016-10-08 12:02:10 +00:00
|
|
|
|
|
|
|
(defvar spacemacs-generic-layout-names
|
|
|
|
'(("zebra" "zucchini" "zen" "yellow" "yeti" "yard") ; grab-bag
|
|
|
|
("baboon" "banana" "blue") ; 2nd layout
|
|
|
|
("crab" "cabbage" "crayon") ; 3rd
|
|
|
|
("deer" "doughnut" "door") ; 4th
|
|
|
|
("elephant" "eggplant" "extreme") ; 5th
|
|
|
|
("falcon" "fig" "fjord") ; 6th
|
|
|
|
("gnu" "garlic" "guardian") ; 7th
|
|
|
|
("horse" "honey" "hallelujah") ; 8th
|
|
|
|
("iguana" "ice-cream" "internet") ; 9th
|
|
|
|
("jellyfish" "jalapeno" "jolt")) ; 10th (aka 0th)
|
|
|
|
"Names for auto-generated layout names.
|
|
|
|
Used by `spacemacs//generate-layout-name'.
|
|
|
|
|
|
|
|
Must be a list with 10 entries, where each entry is a list of
|
|
|
|
names. The 2nd list contains possible names for the 2nd
|
|
|
|
layout (or 10th) layout, the 3rd list contains names for the 3rd
|
|
|
|
layout, the 4th for the 4th, and so on until the 10th (aka layout
|
|
|
|
number 0). The first list is sepcial - it is a grab-bag for names
|
|
|
|
in case none of the regular names can be used for a new layout.")
|
|
|
|
|
2019-07-31 04:34:51 +00:00
|
|
|
(defvar spacemacs-layouts-restricted-functions
|
|
|
|
'(spacemacs/window-split-double-columns
|
|
|
|
spacemacs/window-split-triple-columns
|
|
|
|
spacemacs/window-split-grid)
|
|
|
|
"List of functions to be wrapped by `with-persp-buffer-list'")
|
|
|
|
|
2019-08-20 05:17:36 +00:00
|
|
|
(defvar spacemacs-layouts-restrict-spc-tab nil
|
2019-07-31 04:34:51 +00:00
|
|
|
"If `t' then `SPC-TAB' will be limited to the current layout's buffers.")
|
2018-03-08 17:16:46 +00:00
|
|
|
|
|
|
|
(defvar layouts-enable-local-variables t
|
|
|
|
"Allow variables to be specified as layout-local (value local to a particular layout).")
|
|
|
|
|
|
|
|
(defvar spacemacs--layout-local-variables nil
|
|
|
|
"List of variables that will be local to the current layout.")
|
|
|
|
|
2021-01-15 06:18:58 +00:00
|
|
|
(defvar spacemacs--layout-local-map (spacemacs-ht-create)
|
2018-03-08 17:16:46 +00:00
|
|
|
"Map of layouts to their local variable values.")
|