[layouts] Remove warnings for repeated bindings
This fixes: 1. Repeated bindings
This commit is contained in:
parent
aa4b6e6861
commit
8239c950f9
|
@ -256,7 +256,7 @@ Available PROPS:
|
||||||
;; Check for Clashes
|
;; Check for Clashes
|
||||||
(if ,already-defined?
|
(if ,already-defined?
|
||||||
(unless (equal ,already-defined? ,name)
|
(unless (equal ,already-defined? ,name)
|
||||||
(warn "Replacing existing binding \"%s\" for %s with %s"
|
(spacemacs-buffer/warning "Replacing existing binding \"%s\" for %s with %s"
|
||||||
,binding ,already-defined? ,name )
|
,binding ,already-defined? ,name )
|
||||||
(push '(,binding . ,name) spacemacs--custom-layout-alist))
|
(push '(,binding . ,name) spacemacs--custom-layout-alist))
|
||||||
(push '(,binding . ,name) spacemacs--custom-layout-alist)))))
|
(push '(,binding . ,name) spacemacs--custom-layout-alist)))))
|
||||||
|
@ -279,7 +279,7 @@ Available PROPS:
|
||||||
(format "[%s] %s"
|
(format "[%s] %s"
|
||||||
(car custom-persp) (cdr custom-persp)))
|
(car custom-persp) (cdr custom-persp)))
|
||||||
spacemacs--custom-layout-alist " ")
|
spacemacs--custom-layout-alist " ")
|
||||||
(warn (format "`spacemacs--custom-layout-alist' variable is empty" ))))
|
(spacemacs-buffer/warning (format "`spacemacs--custom-layout-alist' variable is empty" ))))
|
||||||
|
|
||||||
(defun spacemacs//update-custom-layouts ()
|
(defun spacemacs//update-custom-layouts ()
|
||||||
"Ensure the custom-perspectives micro-state is updated.
|
"Ensure the custom-perspectives micro-state is updated.
|
||||||
|
|
Loading…
Reference in a new issue