 ;;; lang/cc/config.el --- c, c++, and obj-c -*- lexical-binding: t; -*-
 
 (defvar +cc-include-paths (list "include/")
-  "A list of paths, relative to a project root, to search for headers in
-C/C++. Paths can be absolute.
+  "A list of paths, relative to a project root, to search for headers in C/C++.
+Paths can be absolute.
 
 The purpose of this variable is to ensure syntax checkers and code-completion
 knows where to look for headers.")

         (equal (file-name-extension buffer-file-name) "h")
         (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t)))

  (push (cons #'+cc-c++-header-file-p 'c++-mode)   magic-mode-alist)
  (push (cons #'+cc-objc-header-file-p 'objc-mode) magic-mode-alist)

  :init

  ;; C/C++ style settings
  (c-toggle-electric-state -1)
  (c-toggle-auto-newline -1)
  (c-set-offset 'substatement-open '0) ; don't indent brackets
  (c-set-offset 'inline-open       '+)
  (c-set-offset 'block-open        '+)
  (c-set-offset 'brace-list-open   '+)
  (c-set-offset 'case-label        '+)
  (c-set-offset 'access-label      '-)
  (c-set-offset 'arglist-intro     '+)
  (c-set-offset 'arglist-close     '0)
  ;; Indent privacy keywords at same level as class properties
  ;; (c-set-offset 'inclass #'+cc-c-lineup-inclass)

