2015-11-15 12:21:53 +00:00
|
|
|
;;; config.el --- C/C++ Layer config File for Spacemacs
|
2015-04-01 02:24:01 +00:00
|
|
|
;;
|
2017-01-06 03:51:13 +00:00
|
|
|
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
|
2015-04-01 02:24:01 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
;; variables
|
|
|
|
|
2017-07-30 21:05:50 +00:00
|
|
|
(defconst c-c++-modes '(c-mode c++-mode)
|
|
|
|
"Primary major modes of the `c-c++' layer.")
|
|
|
|
|
|
|
|
(defconst c-c++-mode-hooks '(c-mode-hook c++-mode-hook)
|
|
|
|
"Primary hooks of the `c-c++' layer.")
|
|
|
|
|
2015-05-14 02:32:39 +00:00
|
|
|
(defvar c-c++-enable-clang-support nil
|
|
|
|
"If non nil Clang related packages and configuration are enabled.")
|
|
|
|
|
2017-04-07 09:21:05 +00:00
|
|
|
(defvar c-c++-enable-clang-format-on-save nil
|
|
|
|
"If non-nil, automatically format code with ClangFormat on
|
|
|
|
save. Clang support has to be enabled for this to work.")
|
|
|
|
|
2016-09-05 02:29:41 +00:00
|
|
|
(spacemacs|define-jump-handlers c++-mode)
|
|
|
|
(spacemacs|define-jump-handlers c-mode)
|
|
|
|
|
2015-06-01 03:09:27 +00:00
|
|
|
(defvar c-c++-default-mode-for-headers 'c-mode
|
|
|
|
"Default mode to open header files. Can be `c-mode' or `c++-mode'.")
|