aboutsummaryrefslogtreecommitdiffstats
path: root/oni-termux.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-01-06 20:06:18 -0800
committerGravatar Tom Willemse2021-01-06 20:08:00 -0800
commit391a3660a49a4b0e7892bcb215a426f6caf16bfc (patch)
tree6132a6fd78b26fa11fd1d5544b0b4a395f7bf36c /oni-termux.el
parent6b24843ac8641b45a0284b65e05a1f7a3aedf827 (diff)
downloademacs-config-391a3660a49a4b0e7892bcb215a426f6caf16bfc.tar.gz
emacs-config-391a3660a49a4b0e7892bcb215a426f6caf16bfc.zip
Run the battery status from ‘user-emacs-directory’
I can’t remember now why, but it must have failed for some reason before.
Diffstat (limited to 'oni-termux.el')
-rw-r--r--oni-termux.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/oni-termux.el b/oni-termux.el
index ca95a80..fad42ad 100644
--- a/oni-termux.el
+++ b/oni-termux.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2019.1006.113112
+;; Version: 2020.0724.190100
;; Package-Requires: (oni-alert alert-termux)
;; This program is free software; you can redistribute it and/or modify
@@ -43,7 +43,8 @@ The following %-sequences are provided:
%L Plugged
%B Status
%d Temperature"
- (let ((info (with-temp-buffer
+ (let ((default-directory user-emacs-directory)
+ (info (with-temp-buffer
(call-process "termux-battery-status" nil t)
(goto-char (point-min))
(json-read))))