               (concat (when current "[") caption (when current "]"))
             caption)))
 
-      (defvar spacemacs--layouts-ms-documentation
-        "
-  [?]                  toggle this help
-  [0,9]                switch to nth layout
-  [tab]                switch to the last
-  [A]                  add all buffers from another layout
-  [a]                  add all the buffers from another layout in the current one
-  [b]                  select a buffer in the current layout
-  [c]                  close the current layout and keep its buffers
-  [C]                  close the other layouts and keep their buffers
-  [h]                  go to default layout
-  [l]                  select/create a layout with helm
-  [L]                  load layouts from file
-  [n] or [C-l]         next layout in list
-  [N] or [p] or [C-h]  previous layout in list
-  [o]                  open a custom layout
-  [r]                  remove current buffer from layout
-  [R]                  rename current layout
-  [s]                  save all layouts
-  [S]                  save layouts by names
-  [t]                  show a buffer without adding it to current layout
-  [w]                  workspaces transient-state (needs eyebrowse layer enabled)
-  [x]                  kill current layout with its buffers
-  [X]                  kill other layouts with their buffers")
-
       (defun spacemacs//layouts-ms-doc ()
         "Return the docstring for the layouts transient-state."
         (let* ((persp-list (or (persp-names-current-frame-fast-ordered)


      (spacemacs|define-transient-state layouts
        :title "Layouts Transient State"
        :bindings
        ;; need to exit in case number doesn't exist
        ("?" spacemacs//layouts-ms-toggle-doc)

        ("X" spacemacs/layouts-ms-kill-other :exit t))
      (spacemacs/set-leader-keys "l" 'spacemacs/layouts-transient-state/body)

      ;; This enables the dynamic behavior from micro-states using ?
      (add-hook 'spacemacs-post-user-config-hook
                (lambda ()
                  (setq spacemacs/layouts-transient-state/hint
