From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-emacs/template/files/50template-gentoo.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app-emacs/template/files/50template-gentoo.el (limited to 'app-emacs/template/files') diff --git a/app-emacs/template/files/50template-gentoo.el b/app-emacs/template/files/50template-gentoo.el new file mode 100644 index 000000000000..3da76196f42e --- /dev/null +++ b/app-emacs/template/files/50template-gentoo.el @@ -0,0 +1,20 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'template-single-comment "template" + "Decorate the comment in the current line with dashes and alike." t) +(autoload 'template-block-comment "template" + "Decorate the current block of comment-only lines with dashes and alike." t) +(autoload 'template-update-header "template" + "Replace old file name in header with current file name." t) +(autoload 'template-expand-template "template" + "Expand template file TEMPLATE and insert result in current buffer." t) +(autoload 'template-new-file "template" + "Open a new file FILE by using a TEMPLATE." t) +(autoload 'template-initialize "template" + "Initialized package template. See variable `template-initialize'." t) + +(setq template-default-directories + (list (if (and (not (file-directory-p "~/.templates/")) + (file-directory-p "~/lib/templates")) + (expand-file-name "~/lib/templates/") + (expand-file-name "~/.templates/")) + "@SITEETC@/templates")) -- cgit v1.2.3