Set company-irony-c-headers up ther ight way.

This commit is contained in:
tastytea 2019-08-07 00:05:42 +02:00
parent a4bc9e6b28
commit 0f15af639f

13
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; init.el --- tastytea's Emacs init file.
;; Time-stamp: <2019-08-04T17:44:45+00:00> ;; Time-stamp: <2019-08-06T22:03:53+00:00>
;;; Commentary: ;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with ;; I am using this file with Emacs 26, but most of it will probably work with
@ -406,14 +406,15 @@ With argument, do this that many times."
;; Auto-complete integration. ;; Auto-complete integration.
(use-package company-irony (use-package company-irony
:after (company irony) :after (company irony)
:config ;; Backend is added in company-irony-c-headers.
(add-to-list 'company-backends 'company-irony)) )
;; Auto-complete headers ;; Auto-complete headers
(use-package company-irony-c-headers (use-package company-irony-c-headers
:after (company-irony) :after company-irony
:config :config
(add-to-list 'company-backends 'company-irony-c-headers)) (add-to-list 'company-backends '(company-irony-c-headers company-irony))
)
;; cmake integration. ;; cmake integration.
(use-package cmake-ide (use-package cmake-ide
@ -428,7 +429,7 @@ With argument, do this that many times."
;; Highlighting and indentation for CMake. ;; Highlighting and indentation for CMake.
(use-package cmake-mode (use-package cmake-mode
;; The CMake ebuild installs the mode. ;; The CMake ebuild installs and activates the mode.
:unless (string-match-p "gentoo" operating-system-release) :unless (string-match-p "gentoo" operating-system-release)
:mode :mode
("CMakeLists\\.txt\\'" . cmake-mode) ("CMakeLists\\.txt\\'" . cmake-mode)