From 1ee48cb1e55b08bb3ec402374afb4c59346a35ed Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 1 Mar 2021 13:51:32 +0800 Subject: Refine durand-view-process The function list-processes is really useful. --- view-conf.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'view-conf.el') diff --git a/view-conf.el b/view-conf.el index bed8495..9d1ea5f 100644 --- a/view-conf.el +++ b/view-conf.el @@ -83,9 +83,12 @@ If ARG is '(16), view the battery information." (defun durand-view-process (&optional arg) "View the list of processes" (interactive "P") - (if arg - (proced) - (message "%s" (process-list)))) + (cond + ((equal arg (list 4)) + (list-processes)) + ((equal arg (list 16)) + (proced)) + ((message "%s" (process-list))))) ;;; My map for viewing -- cgit v1.2.3-18-g5258