cc-mode: move define-company-backend

This commit is contained in:
Henrik Lissner 2016-03-29 23:54:44 -04:00
parent 9cfe115873
commit d9e194da92

View file

@ -26,6 +26,10 @@
c-tab-always-indent nil
c-electric-flag nil)
;; TODO Clang is *really* slow in larger projects, maybe replace it with
;; irony-mode or ycmd?
(define-company-backend! c-mode-common (c-headers clang xcode))
(map! (:map c-mode-base-map
(:localleader
:nv ";" 'narf/append-semicolon)))
@ -42,10 +46,6 @@
(sp-local-pair "/**" "*/" :post-handlers '(("||\n[i]" "RET") ("||\n[i]" "SPC")))
(sp-local-pair "/*!" "*/" :post-handlers '(("||\n[i]" "RET") ("[d-1]< | " "SPC"))))
;; TODO Clang is *really* slow in larger projects, maybe replace it with
;; irony-mode or ycmd?
(define-company-backend! c-mode-common (c-headers clang xcode))
;; C/C++ Settings
(add-hook! (c-mode c++-mode)
(electric-indent-local-mode +1)