From 056d3050ebecdcfa8f0cdd353a925e58167ac867 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 23 May 2024 21:40:33 +1000 Subject: [emacs] c++ config tempel template for #ifdef block --- emacs/.emacs.d/tempel-templates | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs/.emacs.d/tempel-templates') diff --git a/emacs/.emacs.d/tempel-templates b/emacs/.emacs.d/tempel-templates index 2b421cc..ab35739 100644 --- a/emacs/.emacs.d/tempel-templates +++ b/emacs/.emacs.d/tempel-templates @@ -217,6 +217,13 @@ org-mode (inlsrc "src_" p "{" q "}") (title "#+title: " p n "#+author: " (user-full-name) n "#+language: en") +c++-mode + +(ifdef "#ifdef " (p "" sym) " +" + r + " +#endif /* " sym " */" ) ;; Local Variables: ;; mode: lisp-data -- cgit v1.2.3