summaryrefslogtreecommitdiff
path: root/view-conf.el
diff options
context:
space:
mode:
Diffstat (limited to 'view-conf.el')
-rw-r--r--view-conf.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/view-conf.el b/view-conf.el
index ee6b8dd..945276f 100644
--- a/view-conf.el
+++ b/view-conf.el
@@ -37,7 +37,6 @@ If ARG is '(16), view the battery information."
cpu-die-temperature
(progn (re-search-forward "temperature: \\([[:digit:]]+\\.[[:digit:]]+\\)" nil t)
(string-to-number (match-string 1))))
-
;;; NOTE: Now battery charge information
(erase-buffer)
(call-process "system_profiler" nil t nil
@@ -57,7 +56,6 @@ If ARG is '(16), view the battery information."
(setf condition (match-string-no-properties 1))
(re-search-forward "Connected: \\(.+\\)$" nil t)
(setf connected (match-string-no-properties 1))
-
;;; NOTE: Now battery temperature
(erase-buffer)
(call-process "ioreg" nil t nil "-n" "AppleSmartBattery" "-r")
@@ -93,4 +91,7 @@ If ARG is '(16), view the battery information."
(require 'view)
-(define-key view-mode-map (vector 108) 'recenter-top-bottom)
+(define-key view-mode-map (vector 108) #'recenter-top-bottom)
+
+(define-key view-mode-map (vector ?j) #'View-scroll-line-forward)
+(define-key view-mode-map (vector ?k) #'View-scroll-line-backward)