Optimization: buffer-local-value instead of with-current-buffer
This commit is contained in:
parent
b46a75bfe0
commit
85f3c14b2f
3 changed files with 8 additions and 8 deletions
|
@ -38,7 +38,7 @@
|
|||
(:custom (lambda (b &rest _)
|
||||
(when (and (featurep 'repl-toggle)
|
||||
(string-prefix-p "*" (buffer-name (get-buffer b))))
|
||||
(with-current-buffer b repl-toggle-mode))))
|
||||
(buffer-local-value 'repl-toggle-mode b))))
|
||||
:popup t :align below :size 16 :select t)
|
||||
|
||||
(map! :map repl-toggle-mode-map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue