aboutsummaryrefslogtreecommitdiff
path: root/emacs/.config
diff options
context:
space:
mode:
authorHenry J. Webster <hwebs@hwebs.info>2026-10-29 12:30:49 -0500
committerHenry J. Webster <hwebs@hwebs.info>2026-10-29 12:30:49 -0500
commit23fce24df018075310a6a5bdbdd5e316566f2967 (patch)
tree0a850cbdd80efefc4ee59290406e42abc9f68f67 /emacs/.config
parentc7684de8c4681fe54903b81f18c3b56164ee4501 (diff)
emacs: c language changes
- use linux coding style - show 80-col limit - remove comment auto-fill
Diffstat (limited to 'emacs/.config')
-rw-r--r--emacs/.config/emacs/init.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el
index 719748e..0fc9192 100644
--- a/emacs/.config/emacs/init.el
+++ b/emacs/.config/emacs/init.el
@@ -12,11 +12,11 @@
;; Automatically wrap prose in text mode and its derived modes.
(add-hook 'text-mode-hook #'turn-on-auto-fill)
-;; Automatically wrap C comments, but not code, at 80 columns.
(add-hook 'c-mode-hook
(lambda ()
- (setq-local comment-auto-fill-only-comments t)
- (auto-fill-mode 1)))
+ (c-set-style "linux")
+ (setq-local fill-column 80)
+ (display-fill-column-indicator-mode 1)))
;; Keep recovery files out of projects and the configuration directory.
(let* ((xdg-state (getenv "XDG_STATE_HOME"))