From ab273db50d42b2668bc6e566a4358dca24718ece Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Sat, 6 Oct 2018 23:52:18 +0800 Subject: [PATCH] Rule is too restrict for file templates --- modules/feature/file-templates/config.el | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/feature/file-templates/config.el b/modules/feature/file-templates/config.el index b7cb10292..f058d6c9c 100644 --- a/modules/feature/file-templates/config.el +++ b/modules/feature/file-templates/config.el @@ -113,7 +113,6 @@ must be non-read-only, empty, and there must be a rule in `+file-templates-alist' that applies to it." (when (and (not buffer-read-only) (bobp) (eobp) - (get-buffer-window) (not (string-match-p "^ *\\*" (buffer-name)))) (when-let* ((rule (cl-find-if #'+file-template-p +file-templates-alist))) (apply #'+file-templates--expand rule))))