Skip to content

Instantly share code, notes, and snippets.

@unhammer
Last active August 29, 2015 14:10
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 unhammer/7a40821e4dfedb8283b5 to your computer and use it in GitHub Desktop.
Save unhammer/7a40821e4dfedb8283b5 to your computer and use it in GitHub Desktop.
(eval-after-load "company-ycmd-autoloads"
'(progn (company-ycmd-setup)))
(eval-after-load "ycmd-autoloads"
'(progn (require 'ycmd-next-error)
(set-variable 'ycmd-server-command '("python2" "/home/me/src/ycmd/ycmd/__main__.py")) ; doesn't understand '~'
(set-variable 'ycmd-global-config "/home/me/.emacs.d/.ycm_extra_conf.py")
(add-hook 'c-mode-common-hook 'ycmd-mode)
(add-hook 'c-mode-common-hook 'company-mode)
(add-hook 'python-mode-hook 'ycmd-mode)
(add-hook 'python-mode-hook 'company-mode)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment