summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vterm-conf.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/vterm-conf.el b/vterm-conf.el
index 3185d0e..d568674 100644
--- a/vterm-conf.el
+++ b/vterm-conf.el
@@ -33,7 +33,16 @@
(add-hook 'vterm-mode-hook
(lambda ()
(set (make-local-variable 'buffer-face-mode-face) 'fixed-pitch)
- (buffer-face-mode t)))
+ (buffer-face-mode t)))
+
+(defun btm ()
+ "Run the command \"bpm\" in a vterm buffer."
+ (interactive)
+ (vterm)
+ (with-current-buffer vterm-buffer-name
+ (modeline-toggle))
+ (vterm-send-string "btm --battery -m")
+ (vterm-send-return))
(provide 'vterm-conf)
;;; vterm-conf.el ends here