{"id":19894892,"url":"https://github.com/kzemek/cpp-rtags-layer","last_synced_at":"2025-06-28T08:37:51.494Z","repository":{"id":74555160,"uuid":"102668490","full_name":"kzemek/cpp-rtags-layer","owner":"kzemek","description":"Add RTags support to c-c++ Spacemacs layer.","archived":false,"fork":false,"pushed_at":"2017-09-06T23:51:38.000Z","size":4,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T20:16:14.655Z","etag":null,"topics":["cpp","emacs","layer","rtags","spacemacs"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kzemek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-06T23:38:47.000Z","updated_at":"2019-02-01T13:34:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"41c8fa59-3121-4c68-8a33-46602fff00c4","html_url":"https://github.com/kzemek/cpp-rtags-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzemek%2Fcpp-rtags-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzemek%2Fcpp-rtags-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzemek%2Fcpp-rtags-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzemek%2Fcpp-rtags-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kzemek","download_url":"https://codeload.github.com/kzemek/cpp-rtags-layer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241322533,"owners_count":19944073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","emacs","layer","rtags","spacemacs"],"created_at":"2024-11-12T18:35:02.244Z","updated_at":"2025-03-01T05:42:07.876Z","avatar_url":"https://github.com/kzemek.png","language":"Emacs Lisp","readme":"# c++-rtags Spacemacs layer\n\nThis layer augments C++ support provided by [Spacemacs` c-c++ layer](https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Blang/c-c%2B%2B).\n\n## Features\n\n* Adds `rtags` package for basic RTags support\n* Adds `company-rtags` package for RTags-powered completion\n* Adds `flycheck-rtags` for checking C++ code with RTags\n* Adds `helm-rtags` for Helm integration\n* Ensures RTags daemon (`rdm`) is started via `cmake-ide-maybe-start-rdm`\n* Enables completion (via `company`) and linting (via adding a checker to and replacing `flycheck` highligher) in C/C++ modes\n\n## Installation\n\nSimply clone the repository into your emacs.d private directory:\n\n```shell\ngit clone https://github.com/kzemek/cpp-rtags-layer ~/.emacs.d/private/c++-rtags\n```\n\nand enable the layer in `~/.spacemacs` along with `c-c++` (without clang support):\n\n```lisp\n...\ndotspacemacs-configuration-layers\n'( ...\n  c-c++\n  c++-rtags\n  ...\n  )\n...\n```\n\nIf your `c-c++` layer doesn't include `cmake-ide` support you may additionally need to fetch it from `develop` branch:\n```shell\ncd ~/.emacs.d \u0026\u0026 git fetch \u0026\u0026 git checkout origin/develop layers/+lang/c-c++/\n```\n\n## Project setup\n\n* Install [rtags](https://github.com/Andersbakken/rtags)\n  * on macOS this step is as simple as `brew install rtags`\n* [Set up `.dir-locals.el`](https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Blang/c-c%2B%2B#cmake-configuratio)\n* [Create `compile_commands.json`](https://github.com/Andersbakken/rtags#setup) in your build directory\n  * for CMake projects it's enough to add `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` to `cmake` invocation\n\n## Key bindings\n\n| Key Binding | Description    |\n|-------------|----------------|\n| `C \u003ctab\u003e`   | Forces showing completions on current point (`company-complete`) |\n| `, g g`     | Jumps to symbol definition (using RTags) |\n| `, g f`     | Apply Clang fixit |\n| `C-c r`     | Various `rtags` functions |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkzemek%2Fcpp-rtags-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkzemek%2Fcpp-rtags-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkzemek%2Fcpp-rtags-layer/lists"}