Browse Source

Add yasnippets to some other emacs modes

master
parent
commit
d29b568cb9
Signed by: Christian van Onzenoodt <c.onzenoodt@gmail.com> GPG Key ID: 7B2E632FDC852341
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      emacs/init.el

+ 5
- 5
emacs/init.el View File

@@ -962,7 +962,7 @@
962 962
 (use-package company-restclient
963 963
   :ensure t
964 964
   :after (restclient company)
965
-  :config (add-to-list 'company-backends 'company-restclient))
965
+  :config (add-to-list 'company-backends (company-mode/backend-with-yas 'company-restclient)))
966 966
 
967 967
 
968 968
 ;; Dict.cc in Emacs
@@ -1141,7 +1141,7 @@
1141 1141
 (use-package company-racer
1142 1142
   :after (company racer)
1143 1143
   :ensure t
1144
-  :config (add-to-list 'company-backends 'company-racer))
1144
+  :config (add-to-list 'company-backends (company-mode/backend-with-yas 'company-racer)))
1145 1145
 
1146 1146
 
1147 1147
 ;; Python
@@ -1207,7 +1207,7 @@
1207 1207
 
1208 1208
 (use-package company-inf-ruby
1209 1209
   :after (inf-ruby company)
1210
-  :config (add-to-list 'company-backends 'company-inf-ruby))
1210
+  :config (add-to-list 'company-backends (company-mode/backend-with-yas 'company-inf-ruby)))
1211 1211
 
1212 1212
 
1213 1213
 ;; Elisp
@@ -1242,7 +1242,7 @@
1242 1242
   :config
1243 1243
   (use-package company-tern
1244 1244
     :ensure t
1245
-    :config (add-to-list 'company-backends 'company-tern)))
1245
+    :config (add-to-list 'company-backends (company-mode/backend-with-yas 'company-tern))))
1246 1246
 
1247 1247
 (use-package tide
1248 1248
   :commands tide-setup
@@ -1428,7 +1428,7 @@
1428 1428
 (use-package company-cmake
1429 1429
   :ensure t
1430 1430
   :after (cc-mode company)
1431
-  :config (add-to-list 'company-backends 'company-cmake))
1431
+  :config (add-to-list 'company-backends (company-mode/backend-with-yas 'company-cmake)))
1432 1432
 
1433 1433
 (use-package modern-cpp-font-lock
1434 1434
   :after cc-mode

Loading…
Cancel
Save