diff --git a/emacs.d/50-skeletons.el b/emacs.d/50-skeletons.el new file mode 100644 index 0000000..6ba5d97 --- /dev/null +++ b/emacs.d/50-skeletons.el @@ -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)")