emacs - Merge two hooks for the same mode into one -
emacs - Merge two hooks for the same mode into one -
how can merge 2 lines 1 hook?
(add-hook 'web-mode-hook #'(lambda () (yas-activate-extra-mode 'html-mode))) (add-hook 'web-mode-hook #'(lambda () (yas-activate-extra-mode 'css-mode))))
everything i've tried far didn't work.
thanks
mapcar
is, believe, want:
(add-hook 'web-mode-hook (lambda () (mapcar #'yas-activate-extra-mode '(html-mode css-mode))))
(i'm using old version of yasnippet haven't been able test this.)
emacs elisp
Comments
Post a Comment