diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-02-27 02:27:07 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-02-27 02:27:07 +0100 |
commit | 085c862b80b5772476e919da7918f7d0d376b15d (patch) | |
tree | 39ba7bbbbbc28a7ac027b7c095e37a0a8eac130a /scripts | |
parent | .gitignore: ignore .yas-compiled-snippets.el (diff) | |
download | emacs-ebuild-snippets-085c862b80b5772476e919da7918f7d0d376b15d.tar.gz emacs-ebuild-snippets-085c862b80b5772476e919da7918f7d0d376b15d.tar.bz2 emacs-ebuild-snippets-085c862b80b5772476e919da7918f7d0d376b15d.zip |
scripts: add compile-snippets.el
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/compile-snippets.el | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/compile-snippets.el b/scripts/compile-snippets.el new file mode 100755 index 0000000..963b7c7 --- /dev/null +++ b/scripts/compile-snippets.el @@ -0,0 +1,38 @@ +#!/usr/bin/env -S emacs --script + + + +;; Copyright 2023 Gentoo Authors + + +;; This file is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 2 of the License, or +;; (at your option) any later version. + +;; This file is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. + + + +;;; Code: + + +(require 'yasnippet) + + +(defvar snippets-directory (expand-file-name "./snippets")) + + +(message "Snippets directory: %s" snippets-directory) + +(yas-compile-directory snippets-directory) + + + +;;; compile-snippets.el ends here |