commit 351d21a4599a2331d0048995a172185200922838 parent 2da325a609aa67885c8d3b177c00a72e6b3405c2 Author: andsy10 <andsy1016@gmail.com> Date: Sat, 3 Oct 2026 10:54:26 +0800 Update proced config Diffstat:
| M | lisp/init-package.el | | | 15 | ++++++++++++--- |
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/lisp/init-package.el b/lisp/init-package.el @@ -312,7 +312,7 @@ against its previous revision." (use-package proced :straight nil :custom - (proced-auto-update-flag t) + (proced-auto-update-flag (if *is-windows* nil t)) (proced-goal-attribute nil) (proced-show-remote-processes t) (proced-enable-color-flag t) @@ -320,9 +320,18 @@ against its previous revision." :config (add-to-list 'proced-format-alist - '(custom user pid ppid sess tree pcpu pmem rss start time state (args comm))) + (if *is-mac* + '(custom user pid ppid rss start (args comm)) + '(custom user pid ppid sess tree pcpu pmem rss start time state (args comm)))) (setq proced-low-memory-usage-threshold 0.025 - proced-medium-memory-usage-threshold 0.125)) + proced-medium-memory-usage-threshold 0.125) + + (defun proced-sort-rss (&optional arg) + "Sort Proced buffer by time the command rss. +Prefix ARG controls sort order, see `proced-sort-interactive'." + (interactive (list (or current-prefix-arg 'no-arg)) proced-mode) + (proced-sort-interactive 'rss arg)) + (general-def proced-mode-map "s r" #'proced-sort-rss)) ;; syncthing (use-package syncthing