mirror of
https://github.com/SqrtMinusOne/micromamba.el.git
synced 2025-12-10 21:23:03 +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
|
:global t
|
||||||
;; Forms
|
;; Forms
|
||||||
(if micromamba-env-autoactivate-mode ;; already on, now switching off
|
(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)
|
#'micromamba--switch-buffer-auto-activate)
|
||||||
(setq window-selection-change-functions
|
(remove-hook 'window-selection-change-functions #'micromamba--switch-buffer-auto-activate)))
|
||||||
(delete #'micromamba--switch-buffer-auto-activate
|
|
||||||
window-selection-change-functions))))
|
|
||||||
|
|
||||||
(provide 'micromamba)
|
(provide 'micromamba)
|
||||||
;;; micromamba.el ends here
|
;;; micromamba.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue