aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-02-27 23:10:27 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-02-27 23:10:27 +0100
commit27295d8509414e48cf3e0ec14811db527aaffda9 (patch)
treec4b75bcf94510d0d466e3dd482d99d701956a4bb
parentsnippets/ebuild-mode: add missing pkg_* functions yasnippets (diff)
downloademacs-ebuild-snippets-27295d8509414e48cf3e0ec14811db527aaffda9.tar.gz
emacs-ebuild-snippets-27295d8509414e48cf3e0ec14811db527aaffda9.tar.bz2
emacs-ebuild-snippets-27295d8509414e48cf3e0ec14811db527aaffda9.zip
scripts/compile-snippets.el: better snippets-directory detection
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rwxr-xr-xscripts/compile-snippets.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/compile-snippets.el b/scripts/compile-snippets.el
index c9659c9..73af4da 100755
--- a/scripts/compile-snippets.el
+++ b/scripts/compile-snippets.el
@@ -23,7 +23,8 @@
;;; Code:
-(defvar snippets-directory (expand-file-name "./snippets"))
+(defvar snippets-directory
+ (expand-file-name "../snippets" (file-name-directory load-file-name)))
(message "Snippets directory: %s" snippets-directory)