2016-08-22 20:22:59 +00:00
|
|
|
;;; packages.el --- Template Layer packages File for Spacemacs
|
|
|
|
;;
|
2018-05-23 04:20:35 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2016-08-22 20:22:59 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
(setq templates-packages
|
|
|
|
'(yatemplate))
|
|
|
|
|
|
|
|
(defun templates/init-yatemplate ()
|
|
|
|
(use-package yatemplate
|
|
|
|
:init
|
|
|
|
(progn
|
|
|
|
(setq yatemplate-dir
|
2018-05-23 04:20:35 +00:00
|
|
|
(or (concat dotspacemacs-directory "templates/")
|
|
|
|
templates-private-directory))
|
|
|
|
(unless templates-use-default-templates
|
2016-08-22 20:22:59 +00:00
|
|
|
(setq auto-insert-alist nil)))
|
|
|
|
:config
|
|
|
|
(progn
|
|
|
|
(yatemplate-fill-alist)
|
|
|
|
(auto-insert-mode +1))))
|