From 95f4a472f715669f47c35211823c684cce2108f6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 18 Jan 2022 03:43:32 +0000 Subject: (Emacs)~c-auto-newline t->nil, ~autoinsert for c/c++ c-auto-newline was annoying, so turn it off. auto insert Date->Created and less newlines --- Emacs/.config/emacs/config.org | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 31c22fe..d011fbb 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2342,7 +2342,7 @@ opposing style. ("return" . "⟼")) :init (setq-default c-basic-offset 2) - (setq-default c-auto-newline t) + (setq-default c-auto-newline nil) (setq-default c-default-style '((other . "user"))) (with-eval-after-load "autoinsert" @@ -2350,22 +2350,20 @@ opposing style. '("\\.c\\'" . "C skeleton") '("" "/* " (file-name-nondirectory (buffer-file-name (current-buffer))) "\n" - " * Date: " (format-time-string "%Y-%m-%d") "\n" + " * Created: " (format-time-string "%Y-%m-%d") "\n" " * Author: " user-full-name "\n" " */\n" "\n" - "\n" _)) (define-auto-insert '("\\.cpp\\'" . "C++ skeleton") '("" "/* " (file-name-nondirectory (buffer-file-name (current-buffer))) "\n" - " * Date: " (format-time-string "%Y-%m-%d") "\n" + " * Created: " (format-time-string "%Y-%m-%d") "\n" " * Author: " user-full-name "\n" " */\n" "\n" - "\n" _))) :config (c-add-style -- cgit v1.2.3-13-gbd6f