mirror of
https://github.com/SqrtMinusOne/micromamba.el.git
synced 2025-12-10 13:23:02 +03:00
Use add-hook/remove-hook instead of setq/delete
This commit is contained in:
parent
10355eec33
commit
335804a494
1 changed files with 2 additions and 4 deletions
|
|
@ -336,11 +336,9 @@ buffer."
|
|||
:global t
|
||||
;; Forms
|
||||
(if micromamba-env-autoactivate-mode ;; already on, now switching off
|
||||
(add-to-list 'window-selection-change-functions
|
||||
(add-hook 'window-selection-change-functions
|
||||
#'micromamba--switch-buffer-auto-activate)
|
||||
(setq window-selection-change-functions
|
||||
(delete #'micromamba--switch-buffer-auto-activate
|
||||
window-selection-change-functions))))
|
||||
(remove-hook 'window-selection-change-functions #'micromamba--switch-buffer-auto-activate)))
|
||||
|
||||
(provide 'micromamba)
|
||||
;;; micromamba.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue