c/c++: add company-irony-c-headers plugin
This commit is contained in:
parent
637bbb98c3
commit
1ac5e07214
2 changed files with 5 additions and 3 deletions
1
Cask
1
Cask
|
@ -136,6 +136,7 @@
|
|||
(depends-on "irony-eldoc")
|
||||
(depends-on "flycheck-irony")
|
||||
(depends-on "company-irony")
|
||||
(depends-on "company-irony-c-headers")
|
||||
|
||||
;; Crystal -- modules/module-crystal.el
|
||||
(depends-on "crystal-mode" :git "https://github.com/jpellerin/emacs-crystal-mode")
|
||||
|
|
|
@ -82,9 +82,10 @@
|
|||
(flycheck-irony-setup)
|
||||
|
||||
(require 'company-irony)
|
||||
(define-company-backend! c-mode (irony))
|
||||
(define-company-backend! c++-mode (irony))
|
||||
(define-company-backend! objc-mode (irony))
|
||||
(require 'company-irony-c-headers)
|
||||
(define-company-backend! c-mode (irony-c-headers irony))
|
||||
(define-company-backend! c++-mode (irony-c-headers irony))
|
||||
(define-company-backend! objc-mode (irony-c-headers irony))
|
||||
|
||||
;; some c-mode dervied modes wrongfully trigger these hooks (like php-mode)
|
||||
(add-hook! (c-mode c++-mode ojbc-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue