Created
November 7, 2017 04:20
-
-
Save psachin/932e362719a11f50e2672085b5b3f86a to your computer and use it in GitHub Desktop.
Making below changes battery status shows correctly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lisp/battery.el b/lisp/battery.el | |
index b1834f06ff8d..dd0b8f652426 100644 | |
--- a/lisp/battery.el | |
+++ b/lisp/battery.el | |
@@ -58,7 +58,7 @@ | |
((and (eq system-type 'gnu/linux) | |
(file-directory-p "/proc/acpi/battery")) | |
#'battery-linux-proc-acpi) | |
- ((and (eq system-type 'gnu/linux) | |
+ ((and (or (eq system-type 'gnu/linux) (eq system-type 'gnu)) | |
(file-directory-p "/sys/class/power_supply/") | |
(directory-files "/sys/class/power_supply/" nil | |
battery-linux-sysfs-regexp)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment