This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+spacemacs/spacemacs-layouts/config.el
Miciah Masters e8cdaac8d3 Unique defvar for each ts full-hint toggle
Instead of using a single variable for all transient states' full-hint
toggle functions, define a unique variable for each toggle function so that
toggling the full hint for one transient state does not affect the others.

* CHANGELOG.develop: Add an entry for this change.
* layers/+spacemacs/spacemacs-defaults/keybindings.el
(spacemacs--window-manipulation-ts-full-hint-toggle): New variable.
(spacemacs//window-manipulation-ts-toggle-hint)
(spacemacs//window-manipulation-ts-hint): Replace
spacemacs--ts-full-hint-toggle with
spacemacs--window-manipulation-ts-full-hint-toggle.
* layers/+spacemacs/spacemacs-layouts/config.el
(spacemacs--ts-full-hint-toggle): Delete variable.
(spacemacs--layouts-ts-full-hint-toggle)
(spacemacs--workspaces-ts-full-hint-toggle): New variables.
* layers/+spacemacs/spacemacs-layouts/funcs.el
(spacemacs//layouts-ts-toggle-hint, spacemacs//layouts-ts-hint): Replace
spacemacs--ts-full-hint-toggle with spacemacs--layouts-ts-full-hint-toggle.
(spacemacs//workspaces-ts-toggle-hint, spacemacs//workspaces-ts-hint):
Replace spacemacs--ts-full-hint-toggle with
spacemacs--workspaces-ts-full-hint-toggle.
2019-10-13 10:09:42 +02:00

68 lines
2.7 KiB
EmacsLisp

;;; config.el --- Spacemacs Layouts Layer configuration 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
;; 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.")
(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.")
(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.")
(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.")
(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'")
(defvar spacemacs-layouts-restrict-spc-tab nil
"If `t' then `SPC-TAB' will be limited to the current layout's buffers.")