Add astylerc and more layers to spacemacs

This commit is contained in:
Stochastica 2021-02-01 01:00:12 -05:00
parent 6d8d7cddc1
commit 0afd2858f2
2 changed files with 27 additions and 2 deletions

9
home/astylerc Executable file
View File

@ -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

View File

@ -89,6 +89,13 @@ This function should only modify configuration layer settings."
javascript javascript
typescript typescript
html 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." before packages are loaded."
;; Key Bindings ;; Key Bindings
(global-set-key (kbd "<kp-add>") 'centaur-tabs-forward)
(global-set-key (kbd "<kp-subtract>") 'centaur-tabs-backward) (global-set-key (kbd "<kp-subtract>") 'centaur-tabs-backward)
(global-set-key (kbd "<kp-add>") 'centaur-tabs-forward)
(global-set-key (kbd "C-<kp-add>") 'centaur-tabs-move-current-tab-to-right)
(global-set-key (kbd "C-<kp-subtract>") 'centaur-tabs-move-current-tab-to-left)
(evil-ex-define-cmd "q" 'kill-this-buffer) (evil-ex-define-cmd "q" 'kill-this-buffer)
(evil-ex-define-cmd "quit" 'evil-quit) (evil-ex-define-cmd "quit" 'evil-quit)
@ -635,7 +644,14 @@ before packages are loaded."
(setq-default tab-width 2) (setq-default tab-width 2)
(setq (setq
c-default-style "stroustrup" 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) (setq css-indent-offset 2)
(smart-tabs-insinuate (smart-tabs-insinuate
'c 'c