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
|
|
|
|
|
2018-11-20 19:55:37 +00:00
|
|
|
(setq templates-packages '(yatemplate))
|
2016-08-22 20:22:59 +00:00
|
|
|
|
|
|
|
(defun templates/init-yatemplate ()
|
|
|
|
(use-package yatemplate
|
|
|
|
:init
|
|
|
|
(progn
|
2018-06-18 12:36:13 +00:00
|
|
|
(setq yatemplate-dir templates-private-directory)
|
2018-05-23 04:20:35 +00:00
|
|
|
(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))))
|