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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -