aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-02-03 18:04:58 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-02-03 18:04:58 +0100
commit0d091a68a8d2ad1e127cd5baa252b2843ea7d69b (patch)
treef0c2cdcf55185ec601e5a4e8420a484017b66131
parentrun.sh: add run script (diff)
downloademacs-elogt-0d091a68a8d2ad1e127cd5baa252b2843ea7d69b.tar.gz
emacs-elogt-0d091a68a8d2ad1e127cd5baa252b2843ea7d69b.tar.bz2
emacs-elogt-0d091a68a8d2ad1e127cd5baa252b2843ea7d69b.zip
run.sh: do not require only from current directory
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rwxr-xr-xrun.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/run.sh b/run.sh
index c542308..353982f 100755
--- a/run.sh
+++ b/run.sh
@@ -17,4 +17,14 @@
# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
-emacs -q -L . -l ./elogt.el -f elogt
+trap 'exit 128' INT
+set -e
+export PATH
+
+
+exec emacs "${@}" -L . \
+ --eval "(progn
+ (require 'elogt)
+ (elogt)
+ (switch-to-buffer \"*ElogT*\")
+ (delete-other-windows))"