diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-01-18 03:43:32 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-01-18 03:43:32 +0000 |
commit | 95f4a472f715669f47c35211823c684cce2108f6 (patch) | |
tree | 6550f8891cecf9a63c2d1e83b4d95c921127e64e | |
parent | d1eb4d4d44586416733b6ab899ee892becf283b3 (diff) | |
download | dotfiles-95f4a472f715669f47c35211823c684cce2108f6.tar.gz dotfiles-95f4a472f715669f47c35211823c684cce2108f6.tar.bz2 dotfiles-95f4a472f715669f47c35211823c684cce2108f6.zip |
(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
-rw-r--r-- | Emacs/.config/emacs/config.org | 8 |
1 files changed, 3 insertions, 5 deletions
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 |