doom/window-{enlargen,zoom}: assoc -> assq
A minor optimization. assq is significantly faster than assoc (not that it matters for this incredibly insignificant use-case, but yay for premature optimization!)
This commit is contained in:
parent
461fc8e312
commit
05d759fa8b
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ window changes before then, the undo expires.
|
||||||
Alternatively, use `doom/window-enlargen'."
|
Alternatively, use `doom/window-enlargen'."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (and (one-window-p)
|
(if (and (one-window-p)
|
||||||
(assoc ?_ register-alist))
|
(assq ?_ register-alist))
|
||||||
(jump-to-register ?_)
|
(jump-to-register ?_)
|
||||||
(window-configuration-to-register ?_)
|
(window-configuration-to-register ?_)
|
||||||
(delete-other-windows)))
|
(delete-other-windows)))
|
||||||
|
@ -121,7 +121,7 @@ windows (unlike `doom/window-zoom') Activate again to undo."
|
||||||
(interactive)
|
(interactive)
|
||||||
(setq doom--window-enlargened
|
(setq doom--window-enlargened
|
||||||
(if (and doom--window-enlargened
|
(if (and doom--window-enlargened
|
||||||
(assoc ?_ register-alist))
|
(assq ?_ register-alist))
|
||||||
(ignore (ignore-errors (jump-to-register ?_)))
|
(ignore (ignore-errors (jump-to-register ?_)))
|
||||||
(window-configuration-to-register ?_)
|
(window-configuration-to-register ?_)
|
||||||
(if (window-dedicated-p)
|
(if (window-dedicated-p)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue