Skip to content

Instantly share code, notes, and snippets.

@psachin
Created November 7, 2017 04:20
Show Gist options
  • Save psachin/932e362719a11f50e2672085b5b3f86a to your computer and use it in GitHub Desktop.
Save psachin/932e362719a11f50e2672085b5b3f86a to your computer and use it in GitHub Desktop.
Making below changes battery status shows correctly
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