From: rearman Date: Mon, 27 Apr 2026 16:25:21 +0000 (-0400) Subject: Cleanup redundancies X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=4a4a5bb3a6a30480a1084e136289c8af2315b1c4;p=emacsinit.git Cleanup redundancies --- diff --git a/re/re-c-style.el b/re/re-c-style.el index a260fb9..f526b00 100644 --- a/re/re-c-style.el +++ b/re/re-c-style.el @@ -5,7 +5,8 @@ ;;; Code: (defun re/c-lineup-arglist-tabs-only (ignored) - "Line up argument lists by tabs, not spaces. Stolen from https://kernel.org/doc/html/v4.10/process/coding-style.html" + "Line up argument lists by tabs, not spaces. + Stolen from https://kernel.org/doc/html/v4.10/process/coding-style.html" (let* ((anchor (c-langelem-pos c-syntactic-element)) (column (c-langelem-2nd-pos c-syntactic-element)) (offset (- (1+ column) anchor)) @@ -15,14 +16,14 @@ (add-hook 'c-mode-common-hook (lambda () (c-add-style "linux-tabs-only" - '("linux" (c-offsets-alist (arglist-cont-nonempty c-lineup-gcc-asm-reg re/c-lineup-arglist-tabs-only)))))) + '("linux" (c-offsets-alist + (arglist-cont-nonempty + c-lineup-gcc-asm-reg + re/c-lineup-arglist-tabs-only)))))) (add-hook 'c-mode-hook (lambda () - (setq indent-tabs-mode t) - (setq show-trailing-whitespace t) (setq c-backspace-function 'backward-delete-char) - (keymap-local-set "" #'tab-to-tab-stop) (c-set-style "linux-tabs-only"))) (provide 're-c-style)