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