6932a337ee
- Move rtags key bindings under `SPC m g` prefix - Document rtags support and key bindings in README.org - attempt to implement gtags fallback using https://github.com/Andersbakken/rtags#fall-back-to-other-taggers - make c-c++ layer dependend on gtags layer (gtags layer is automatically installed when the c-c++ layer is used) - sort packages config in packages.el - use a dolist instead of a function to define rtags key bindings
49 lines
1.5 KiB
EmacsLisp
49 lines
1.5 KiB
EmacsLisp
;;; config.el --- C/C++ Layer config File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
;; variables
|
|
|
|
(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.")
|
|
|
|
(defvar c-c++-enable-clang-support nil
|
|
"If non nil Clang related packages and configuration are enabled.")
|
|
|
|
(defvar c-c++-enable-google-style nil
|
|
"If non-nil `google-set-c-style' will be added as as
|
|
`c-mode-common-hook'.")
|
|
|
|
(defvar c-c++-enable-google-newline nil
|
|
"If non-nil `google-make-newline-indent' will be added as as
|
|
`c-mode-common-hook'.")
|
|
|
|
(defvar c-c++-enable-rtags-support nil
|
|
"If non nil Rtags related packages and configuration are enabled.")
|
|
|
|
(defvar c-c++-enable-cmake-ide-support nil
|
|
"If non nil CMake related packages and configuration are enabled.")
|
|
|
|
(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.")
|
|
|
|
(defvar c-c++-enable-c++11 nil
|
|
"If non nil then c++11 related features will be enabled")
|
|
|
|
(spacemacs|define-jump-handlers c++-mode)
|
|
(spacemacs|define-jump-handlers c-mode)
|
|
|
|
(defvar c-c++-default-mode-for-headers 'c-mode
|
|
"Default mode to open header files. Can be `c-mode' or `c++-mode'.")
|