summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-08 22:46:08 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-08 22:46:08 +0200
commitd5e6a0d76d41d6fd5eb51823dd2f966382ec6681 (patch)
treeaccb851f3d54ab2a2b5e8778bed911efed4860f5 /.config/emacs/init.el
parent2a224ff34c4d0c13c2eafae3bd631da369ae8e0b (diff)
emacs: Set auto newline and hungry delete in C
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 8bebd23..da45954 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -662,6 +662,10 @@ font name, font weight, and font height in that order.")
(x-set-project-list))
;;; C-Style
+(setq-default
+ c-auto-newline t
+ c-hungry-delete-key t)
+
(defun x-c-defun-open-safe (_syntax _position)
(if (c-cpp-define-name)
'(after)