From 058a937f13b29b226fd9df24564e223fae73b025 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 25 Sep 2019 03:38:21 +0200 Subject: [PATCH] Updated C++ templates. --- auto-insert/cpp | 1 + auto-insert/hpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/auto-insert/cpp b/auto-insert/cpp index 450fc30..a62c825 100644 --- a/auto-insert/cpp +++ b/auto-insert/cpp @@ -16,3 +16,4 @@ #include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.hpp" +using namespace ${2:`(projectile-project-name)`}; diff --git a/auto-insert/hpp b/auto-insert/hpp index dd1d015..2a0669f 100644 --- a/auto-insert/hpp +++ b/auto-insert/hpp @@ -17,6 +17,9 @@ #ifndef ${1:`(upcase (replace-regexp-in-string "-" "_" (projectile-project-name)))`_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_`(upcase (file-name-extension (buffer-file-name)))`} #define $1 -$0 +namespace ${2:`(projectile-project-name)`} +{ + $0 +} // namespace $2 #endif // $1