From 0afd2858f22e6e10096e3df19196f793be52bef1 Mon Sep 17 00:00:00 2001 From: Stochastica Date: Mon, 1 Feb 2021 01:00:12 -0500 Subject: [PATCH] Add astylerc and more layers to spacemacs --- home/astylerc | 9 +++++++++ home/spacemacs | 20 ++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100755 home/astylerc diff --git a/home/astylerc b/home/astylerc new file mode 100755 index 0000000..f867862 --- /dev/null +++ b/home/astylerc @@ -0,0 +1,9 @@ +--style=allman +--align-pointer=type +--close-templates +--convert-tabs +--indent-preproc-block +--indent-preproc-define +--indent=tab=2 +--pad-header +--unpad-paren diff --git a/home/spacemacs b/home/spacemacs index 880b64a..8b77479 100644 --- a/home/spacemacs +++ b/home/spacemacs @@ -89,6 +89,13 @@ This function should only modify configuration layer settings." javascript typescript html + + alda ;; Music language + finance ;; Ledger accounting + nginx + systemd + sql + gpu ;; CUDA, OpenGL shaders ) @@ -579,8 +586,10 @@ Put your configuration code here, except for variables that should be set before packages are loaded." ;; Key Bindings - (global-set-key (kbd "") 'centaur-tabs-forward) (global-set-key (kbd "") 'centaur-tabs-backward) + (global-set-key (kbd "") 'centaur-tabs-forward) + (global-set-key (kbd "C-") 'centaur-tabs-move-current-tab-to-right) + (global-set-key (kbd "C-") 'centaur-tabs-move-current-tab-to-left) (evil-ex-define-cmd "q" 'kill-this-buffer) (evil-ex-define-cmd "quit" 'evil-quit) @@ -635,7 +644,14 @@ before packages are loaded." (setq-default tab-width 2) (setq c-default-style "stroustrup" - c-basic-offset 2) + c-basic-offset 2 + lsp-clients-clangd-args + '("-j=4" + "--clang-tidy" + "--header-insertion=never" + "--pch-storage=memory" + )) + (setq css-indent-offset 2) (smart-tabs-insinuate 'c