From 4c65d5f267f3ed70224ae6e8c26430a9571a21dd Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 9 Mar 2025 09:46:35 +1100 Subject: [emacs][mpv][bashrc] emms group play fix --- emacs/.emacs.d/lisp/my/my-utils.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs/.emacs.d/lisp/my/my-utils.el') diff --git a/emacs/.emacs.d/lisp/my/my-utils.el b/emacs/.emacs.d/lisp/my/my-utils.el index 3ecd0a9..0743227 100644 --- a/emacs/.emacs.d/lisp/my/my-utils.el +++ b/emacs/.emacs.d/lisp/my/my-utils.el @@ -304,6 +304,13 @@ Example: (format-time-string ... (my-time-from-epoch 1698582504))" ,@body (setq default-directory saved))) + +(defun my-call-process-out (command &rest args) + "Call `call-process' on COMMAND with ARGS and return the output." + (with-temp-buffer + (apply 'call-process (append (list command nil t nil) args)) + (buffer-string))) + (defun my-call-process-with-torsocks (program &optional infile destination display &rest args) (apply 'call-process -- cgit v1.2.3