bugfix: need to to go to end of buffer after inserting .yas-setup.el

This commit is contained in:
João Távora 2012-04-22 17:11:23 +01:00
parent 3eff698e68
commit 023f1ebad4

View File

@ -1736,7 +1736,9 @@ This works by stubbing a few functions, then calling
(let ((elfile (concat file ".el"))) (let ((elfile (concat file ".el")))
(when (file-exists-p elfile) (when (file-exists-p elfile)
(insert ";;; .yas-setup.el support file if any:\n;;;\n") (insert ";;; .yas-setup.el support file if any:\n;;;\n")
(insert-file-contents elfile)))) (insert-file-contents elfile)
(end-of-buffer)
)))
(yas/define-snippets (yas/define-snippets
(mode snippets) (mode snippets)
(insert ";;; Snippet definitions:\n;;;\n") (insert ";;; Snippet definitions:\n;;;\n")