From 08679e967a9a1ed9548199d0c7e2aeb3e1f8b3e7 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 28 Sep 2023 16:29:05 +0100 Subject: (Emacs)~C/C++ skeleton now inserts a copyright notice. --- Emacs/.config/emacs/config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 14eefe4..7fa7db8 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -3078,7 +3078,7 @@ Tons of stuff, namely: :auto-insert (("\\.c\\'" . "C skeleton") "" - "/* " (file-name-nondirectory (buffer-file-name (current-buffer))) "\n" + "/* " (+license/insert-copyright-notice) "\n\n" " * Created: " (format-time-string "%Y-%m-%d") "\n" " * Author: " user-full-name "\n" " * Description: " _ "\n" @@ -3086,7 +3086,7 @@ Tons of stuff, namely: "\n") (("\\.cpp\\'" "C++ skeleton") "" - "/* " (file-name-nondirectory (buffer-file-name (current-buffer))) "\n" + "/* " (+license/insert-copyright-notice) "\n\n" " * Created: " (format-time-string "%Y-%m-%d") "\n" " * Author: " user-full-name "\n" " * Description: " _ "\n" -- cgit v1.2.3-13-gbd6f