spacemacs/contrib/lang/c-c++
2015-03-30 00:01:33 -04:00
..
img Move layer images into img directories 2014-12-24 01:03:49 -05:00
packages.el Add company backend add macro and use it everywhere 2015-03-30 00:01:33 -04:00
README.md Add projectile-find-other-file key bindings 2015-03-23 21:52:55 -04:00

C/C++ contribution layer for Spacemacs

cc++ cmake

Table of Contents

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 for demos in some programming languages.
  • Support common refactoring with semantic-refactor. See this page for demonstration of refactoring features.

This layer is not fully adapted for Spacemacs, it needs you, C/C++ experts, to improve it and make it consistent with the Spacemacs experience.

Key Bindings

Key Binding       |                 Description

----------------------|------------------------------------------------------------ SPC m g o | open matching file (e.g. switch between .cpp and .h) SPC m g O | open matching file in another window (e.g. switch between .cpp and .h) SPC m r | srefactor: refactor thing at point.

Install

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(c-c++))

** Note: ** semantic-refactor is only available for Emacs 24.4+