syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.57k stars 4.9k forks source link

layers/+spacemacs/spacemacs-purpose: move to define-advice #16360

Closed sunlin7 closed 1 month ago

sunlin7 commented 3 months ago

Hi, I got warning messages on startup for defadvice, so move to the define-advice.

layers/+spacemacs/spacemacs-purpose/packages.el: Warning: ‘defadvice’ is an obsolete macro (as of 30.1); use ‘advice-add’ or ‘define-advice’

Please help review the changes, thanks.