EMACS: Discovered skeletons

Added a skeleton for my cmake projects
This commit is contained in:
Tom Willemsen 2011-04-17 00:24:14 +02:00
parent 2e952899b0
commit 372171f7ed

12
emacs.d/50-skeletons.el Normal file
View file

@ -0,0 +1,12 @@
(define-skeleton cmake-project-skeleton
"A cmake project template file"
"Name: "
"cmake_minimum_required(VERSION 2.6)\n"
"project(" str ")\n"
"\n"
"set(" str "_VERSION_MAJOR 0)\n"
"set(" str "_VERSION_MINOR 0)\n"
"set(" str "_VERSION_PATCH 0)\n"
"\n"
"set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})\n"
"add_subdirectory(src)")