This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/lang/c-c++/README.md

46 lines
1.4 KiB
Markdown
Raw Normal View History

# C/C++ contribution layer for Spacemacs
2014-12-24 06:03:49 +00:00
![cc++](img/ccpp.jpg)
![cmake](img/cmake.png)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [C/C++ contribution layer for Spacemacs](#cc-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
<!-- markdown-toc end -->
## Description
This layer adds configuration for C/C++ language as well support for [CMake][]
scripts.
## Features
- Support syntax checking with Clang.
- Display function or variable definition at the bottom.
- Display current function cursor is in at the top. See [this page][stickyfunc-demos]
for demos in some programming languages.
- Support common refactoring with [semantic-refactor][]. See [this page][srefactor-demos]
for demonstration of refactoring features.
**This layer is not fully adapted for Spacemacs, it needs you, C/C++ experts, to
2014-12-14 04:29:23 +00:00
improve it and make it consistent with the Spacemacs experience.**
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
2015-02-18 03:36:12 +00:00
(setq-default dotspacemacs-configuration-layers '(c-c++))
```
** Note: ** [semantic-refactor][] is only available for Emacs 24.4+
[CMake]: http://www.cmake.org/
[semantic-refactor]: https://github.com/tuhdo/semantic-refactor
[srefactor-demos]: https://github.com/tuhdo/semantic-refactor/blob/master/srefactor-demos/demos.org
[stickyfunc-demos]: https://github.com/tuhdo/semantic-stickyfunc-enhance