From d5e6a0d76d41d6fd5eb51823dd2f966382ec6681 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 8 Sep 2024 22:46:08 +0200 Subject: emacs: Set auto newline and hungry delete in C --- .config/emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config/emacs/init.el') 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) -- cgit v1.2.3