cc-mode: move define-company-backend
This commit is contained in:
parent
9cfe115873
commit
d9e194da92
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue