Created
December 28, 2009 22:43
-
-
Save nonsequitur/265010 to your computer and use it in GitHub Desktop.
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
(define-key company-active-map "\t" 'company-yasnippet-or-completion) | |
(defun company-yasnippet-or-completion () | |
(interactive) | |
(if (yas/expansion-at-point) | |
(progn (company-abort) | |
(yas/expand)) | |
(company-complete-common))) | |
(defun yas/expansion-at-point () | |
"Tested with v0.6.1. Extracted from `yas/expand-1'" | |
(first (yas/current-key))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does not work with Yasnippet Version 20141005.124 installed from MELPA.
M-x company-yasnippet-or-completion
returns the errorSymbol's function definition is void: yas/current-key
.