;;; macros-yasnippet.el

;;;###autoload
(defmacro def-yas-mode! (mode)
  "Register minor MODES in yasnippet."
  `(after! yasnippet
     (when (boundp 'yas--extra-modes)
       (add-hook! ,mode
         (if (symbol-value ,mode)
             (yas-activate-extra-mode ,mode)
           (yas-deactivate-extra-mode ,mode))))))

(provide 'macros-yasnippet)
;;; macros-yasnippet.el ends here

;;; macros-yasnippet.el

;;;###autoload
(defmacro def-yas-mode! (mode)
  "Register minor MODES in yasnippet."
  `(after! yasnippet
     (add-hook! ,mode
       (if ,mode
           (yas-activate-extra-mode ,mode)
         (yas-deactivate-extra-mode ,mode)))))

(provide 'macros-yasnippet)
;;; macros-yasnippet.el ends here

Remove redundant boundp check in def-yas-mode!
Remove redundant boundp check in def-yas-mode!

aminb/.emacs.d,aminb/.emacs.d,hlissner/.emacs.d,aminb/.emacs.d,keoko/.emacs.d,hlissner/doom-emacs,UndeadKernel/emacs_doom,hlissner/doom-emacs,hlissner/doom-emacs,UndeadKernel/emacs_doom,hlissner/doom-emacs,hlissner/.emacs.d,hlissner/.emacs.d,UndeadKernel/emacs_doom,aminb/.emacs.d,UndeadKernel/emacs_doom,keoko/.emacs.d,hlissner/.emacs.d,hlissner/doom-emacs,hlissner/doom-emacs,keoko/.emacs.d,hlissner/.emacs.d,UndeadKernel/emacs_doom,UndeadKernel/emacs_doom,aminb/.emacs.d,hlissner/.emacs.d,aminb/.emacs.d,keoko/.emacs.d,hlissner/doom-emacs,aminb/.emacs.d,hlissner/.emacs.d,keoko/.emacs.d,UndeadKernel/emacs_doom,aminb/.emacs.d,keoko/.emacs.d,hlissner/.emacs.d,keoko/.emacs.d,keoko/.emacs.d