diff --git a/emacs-json-snatcher.spec b/emacs-json-snatcher.spec index 157012a..a078b56 100644 --- a/emacs-json-snatcher.spec +++ b/emacs-json-snatcher.spec @@ -2,12 +2,13 @@ Name: emacs-%{pkg} Version: 1.0.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Get the path to a JSON element in Emacs License: GPLv3+ URL: https://github.com/Sterlingg/%{pkg} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +Source1: %{pkg}-init.el BuildRequires: emacs Requires: emacs(bin) >= %{_emacs_version} @@ -31,13 +32,19 @@ to this value. install -dm 0755 $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/ install -pm 0644 %{pkg}.el* -t $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/ +install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.el + %files %doc README.md %{_emacs_sitelispdir}/%{pkg}/ +%{_emacs_sitestartdir}/*.el %changelog +* Sun Sep 12 2021 Mohamed El Morabity - 1.0.0-8 +- Add autoload file + * Wed Jul 21 2021 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/json-snatcher-init.el b/json-snatcher-init.el new file mode 100644 index 0000000..e2ca58d --- /dev/null +++ b/json-snatcher-init.el @@ -0,0 +1,2 @@ +(autoload 'jsons-print-path "json-snatcher" "\ +Print the path to the JSON value under point, and save it in the kill ring." t nil)