chore(users): grfn -> aspen
Change-Id: I6c6847fac56f0a9a1a2209792e00a3aec5e672b9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10809 Autosubmit: aspen <root@gws.fyi> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
0ba476a426
commit
82ecd61f5c
478 changed files with 75 additions and 77 deletions
39
users/aspen/emacs.d/cpp.el
Normal file
39
users/aspen/emacs.d/cpp.el
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
;;; -*- lexical-binding: t; -*-
|
||||
|
||||
|
||||
(load! "google-c-style")
|
||||
|
||||
(after! flycheck
|
||||
(add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
|
||||
(add-to-list 'flycheck-disabled-checkers 'c/c++-clang))
|
||||
|
||||
(defun +aspen/cpp-setup ()
|
||||
(when (s-starts-with?
|
||||
"/home/aspen/code/depot/third_party/nix"
|
||||
(buffer-file-name))
|
||||
(setq lsp-clients-clangd-executable "/home/aspen/code/depot/users/aspen/emacs.d/nix-clangd.sh"
|
||||
lsp-clients-clangd-args nil)
|
||||
(google-set-c-style)
|
||||
(lsp)
|
||||
(add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
|
||||
(add-to-list 'flycheck-disabled-checkers 'c/c++-clang)))
|
||||
|
||||
(add-hook 'c++-mode-hook #'+aspen/cpp-setup)
|
||||
|
||||
(use-package! protobuf-mode)
|
||||
|
||||
(use-package! clang-format+
|
||||
:config
|
||||
(add-hook 'c-mode-common-hook #'clang-format+-mode))
|
||||
|
||||
(map!
|
||||
(:map c++-mode-map
|
||||
:leader
|
||||
(:n "/ i" #'counsel-semantic-or-imenu)))
|
||||
|
||||
(comment
|
||||
(setq
|
||||
lsp-clients-clangd-executable
|
||||
"/home/aspen/code/depot/third_party/nix/clangd.sh"
|
||||
lsp-clients-clangd-args nil)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue