From 8a7f0beb861d3aa2336625da90e13c4fb881c218 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 14 Jul 2020 15:34:23 -0400 Subject: feat(gs/emacs): Configure for C++ development Vendor the google-c-style module, and configure lsp-mode to run the clangd wrapper script for hacking on tvlnix Change-Id: I8d1ac2f30c9708501e0840ef3d53fe479bc39fa7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1166 Tested-by: BuildkiteCI Reviewed-by: glittershark --- users/glittershark/emacs.d/nix-clangd.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 users/glittershark/emacs.d/nix-clangd.sh (limited to 'users/glittershark/emacs.d/nix-clangd.sh') diff --git a/users/glittershark/emacs.d/nix-clangd.sh b/users/glittershark/emacs.d/nix-clangd.sh new file mode 100755 index 000000000000..0df209c2eb99 --- /dev/null +++ b/users/glittershark/emacs.d/nix-clangd.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -euo pipefail + +CLANGD_FLAGS=--compile-commands-dir=/home/grfn/builds/tazjix \ + nix-shell /home/grfn/code/depot \ + -A third_party.nix \ + --run nix-clangd -- cgit 1.4.1