guixsd-config

GuixSD configs for my systems
Log | Files | Refs

commit c2b82e94f08c7ae64ae129a5ca34f24ead114534
parent ac836f28f58ecab4ccad1219d69185d0b42e908c
Author: Vineet Kumar <git@vineetk.net>
Date:   Sat, 21 Mar 2026 16:26:23 -0400

emacs: attempt to fix clang-format

Diffstat:
Mepistemia/files/emacs/.config/emacs/init.el | 13+++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/epistemia/files/emacs/.config/emacs/init.el b/epistemia/files/emacs/.config/emacs/init.el @@ -110,11 +110,7 @@ (sendmail-program "msmtp") (mail-specify-envelope-from t) (message-sendmail-envelope-from 'header) - (mail-envelope-from 'header) - - ;;:hook - ;;(c-mode . (lambda () (font-lock-mode 1))) - ) + (mail-envelope-from 'header)) ;; eshell config (use-package eshell @@ -358,12 +354,13 @@ (TeX-after-compilation-finished-functions TeX-revert-document-buffer)) ;; use clang-format for c/c++ modes -;; TODO: fix clang-format+ (or replace with simpler package) (use-package clang-format :custom - (clang-format-style "LLVM") + ;; attempt to mimic suckless's coding style after + ;; after quite a few years of using C, I found theirs to be the most appealing + (clang-format-style "{BasedOnStyle: LLVM, Language: Cpp, UseTab: AlignWithSpaces, TabWidth: 8, IndentWidth: 8, ColumnLimit: 79, BreakBeforeBraces: Linux, BreakAfterReturnType: AllDefinitions, PointerAlignment: Right, SpaceBeforeParens: ControlStatements, SpacesInParensOptions: {InConditionalStatements: false, InEmptyParentheses: false, Other: false}, IndentCaseLabels: false, AllowShortBlocksOnASingleLine: Never, AllowShortIfStatementsOnASingleLine: Never, AllowShortLoopsOnASingleLine: false, AllowShortFunctionsOnASingleLine: None, SortIncludes: Never, BinPackArguments: true, BinPackParameters: true, AlignConsecutiveMacros: Consecutive}") :hook - (c-mode-comment #'clang-format-mode)) + (c-mode-common #'clang-format-mode)) ;; TODO: Geiser -- "The Perfect Setup" for Guile/Guix (use-package geiser)