Skip to content

Instantly share code, notes, and snippets.

@ptrv
Created October 26, 2014 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrv/3f49297c829ff845b477 to your computer and use it in GitHub Desktop.
Save ptrv/3f49297c829ff845b477 to your computer and use it in GitHub Desktop.
Emacs company-ycmd config
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; * ycmd
(ptrv/after cc-mode
(message "Load config: ycmd...")
(require 'ycmd)
(defun ptrv/company-ycmd--init ()
(local-set-key (kbd "<f12>") 'company-complete-common)
(make-local-variable 'company-backends)
(company-ycmd-setup))
(add-hook 'c++-mode-hook #'ptrv/company-ycmd--init))
;; (remove-hook 'c++-mode-hook #'ptrv/company-ycmd--init)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment