mirror of
https://github.com/SqrtMinusOne/micromamba.el.git
synced 2025-12-10 21:23:03 +03:00
advice-add -> window-selection-change-functions
This commit is contained in:
parent
4ae2caa892
commit
4ffe110f79
1 changed files with 2 additions and 2 deletions
|
|
@ -385,8 +385,8 @@ buffer."
|
|||
:global t
|
||||
;; Forms
|
||||
(if micromamba-env-autoactivate-mode ;; already on, now switching off
|
||||
(advice-add 'switch-to-buffer :after #'micromamba--switch-buffer-auto-activate)
|
||||
(advice-remove 'switch-to-buffer #'micromamba--switch-buffer-auto-activate)))
|
||||
(add-to-list 'window-selection-change-functions #'micromamba--switch-buffer-auto-activate)
|
||||
(delete #'micromamba--switch-buffer-auto-activate 'window-selection-change-functions)))
|
||||
|
||||
(provide 'micromamba)
|
||||
;;; micromamba.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue