diff options
author | 2023-02-27 03:09:59 +0100 | |
---|---|---|
committer | 2023-02-27 03:09:59 +0100 | |
commit | aac15b31e242529f89800cdb7a7de7a9ef5df1c7 (patch) | |
tree | 0f32a39ee8398445718bc4afbdf81f47d6323bad | |
parent | snippets/ebuild-mode: add eclass_variable.yas (diff) | |
download | emacs-ebuild-snippets-aac15b31e242529f89800cdb7a7de7a9ef5df1c7.tar.gz emacs-ebuild-snippets-aac15b31e242529f89800cdb7a7de7a9ef5df1c7.tar.bz2 emacs-ebuild-snippets-aac15b31e242529f89800cdb7a7de7a9ef5df1c7.zip |
scripts/compile-snippets.el: relax
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rwxr-xr-x | scripts/compile-snippets.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/compile-snippets.el b/scripts/compile-snippets.el index 963b7c7..c9659c9 100755 --- a/scripts/compile-snippets.el +++ b/scripts/compile-snippets.el @@ -23,15 +23,14 @@ ;;; Code: -(require 'yasnippet) - - (defvar snippets-directory (expand-file-name "./snippets")) (message "Snippets directory: %s" snippets-directory) -(yas-compile-directory snippets-directory) +(if (equal (require 'yasnippet nil t) 'yasnippet) + (yas-compile-directory snippets-directory) + (display-warning 'compile-snippets "yasnippet could not be loaded" :warning)) |