How to get completion for yasnippets using auto-complete

后端 未结 1 1328
名媛妹妹
名媛妹妹 2020-12-20 01:36

I am using autocomplete-1.4.0 and yasnippet-0.8.1 with the following order and configuration in my .emacs file.

    ; === auto-complete ===
    (require \'au         


        
相关标签:
1条回答
  • 2020-12-20 01:47

    You should add the yasnippet ac-source. I have this in my init files:

    (defun add-yasnippet-ac-sources ()
      (add-to-list 'ac-sources 'ac-source-yasnippet))
    

    Then for every mode where I want the yasnippet source enabled, I add add-yasnippet-ac-sources to that mode hook:

    (add-hook 'ruby-mode-hook 'add-yasnippet-ac-sources)
    
    0 讨论(0)
提交回复
热议问题