.emacs.d/auto-insert/hpp

10 lines
312 B
Plaintext

#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
namespace ${2:`(projectile-project-name)`}
{
$0
} // namespace $2
#endif // $1