-
-
Save ur4ltz/18d3e54493551e26008eba3f7973832f to your computer and use it in GitHub Desktop.
company with yasnippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; With this code, yasnippet will expand the snippet if company didn't complete the word | |
;; replace company-complete-common with company-complete if you're using it | |
(advice-add 'company-complete-common :before (lambda () (setq my-company-point (point)))) | |
(advice-add 'company-complete-common :after (lambda () | |
(when (equal my-company-point (point)) | |
(yas-expand)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment