feat: add proced config and customed some faces

This commit is contained in:
User
2026-06-24 08:08:05 +08:00
parent e5c20c6c99
commit 402a33d25e
5 changed files with 39 additions and 3 deletions

View File

@@ -146,7 +146,8 @@
(general-def (general-def
:prefix "C-c x" :prefix "C-c x"
"e" 'eshell "e" 'eshell
"E" 'eat) "E" 'eat
"p" 'proced)
;; scratch buffer ;; scratch buffer
(if *is-mac* (if *is-mac*

View File

@@ -169,6 +169,20 @@
(if *is-linux* (if *is-linux*
(use-package guix)) (use-package guix))
;; proced进程管理器
(use-package proced
:straight nil
:custom
(proced-auto-update-flag t)
(proced-goal-attribute nil)
(proced-show-remote-processes t)
(proced-enable-color-flag t)
(proced-format 'custom)
:config
(add-to-list
'proced-format-alist
'(custom user pid ppid sess tree pcpu pmem rss start time state (args comm))))
(provide 'init-package) (provide 'init-package)
;;; init-package.el ends here ;;; init-package.el ends here

View File

@@ -48,6 +48,7 @@
"\\*discomfort\\*" "\\*discomfort\\*"
"\\*eww bookmarks\\*" "\\*eww bookmarks\\*"
"\\*eww history\\*" "\\*eww history\\*"
"\\*Proced\\*"
bookmark-bmenu-mode bookmark-bmenu-mode
lsp-bridge-ref-mode lsp-bridge-ref-mode
comint-mode comint-mode

View File

@@ -109,7 +109,17 @@
`(keycast-key ((,class (:foreground ,green :weight bold)))) `(keycast-key ((,class (:foreground ,green :weight bold))))
`(emms-playlist-track-face ((,class (:foreground ,cyan)))) `(emms-playlist-track-face ((,class (:foreground ,cyan))))
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))))) `(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
`(proced-pid ((,class (:foreground ,violet))))
`(proced-cpu ((,class (:inherit proced-pid :weight bold))))
`(proced-mem ((,class (:inherit proced-pid :weight bold))))
`(proced-ppid ((,class (:foreground ,blue))))
`(proced-emacs-pid ((,class (:foreground ,magenta))))
`(proced-executable ((,class (:foreground ,cyan))))
`(proced-run-status-code ((,class (:foreground ,green))))
`(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red))))
`(proced-time-colon ((,class (:foreground ,violet)))))))
(provide-theme 'my-base16-dark) (provide-theme 'my-base16-dark)

View File

@@ -109,7 +109,17 @@
`(keycast-key ((,class (:foreground ,green :weight bold)))) `(keycast-key ((,class (:foreground ,green :weight bold))))
`(emms-playlist-track-face ((,class (:foreground ,cyan)))) `(emms-playlist-track-face ((,class (:foreground ,cyan))))
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))))) `(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
`(proced-pid ((,class (:foreground ,violet))))
`(proced-cpu ((,class (:inherit proced-pid :weight bold))))
`(proced-mem ((,class (:inherit proced-pid :weight bold))))
`(proced-ppid ((,class (:foreground ,blue))))
`(proced-emacs-pid ((,class (:foreground ,magenta))))
`(proced-executable ((,class (:foreground ,cyan))))
`(proced-run-status-code ((,class (:foreground ,green))))
`(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red))))
`(proced-time-colon ((,class (:foreground ,violet))))))))))
(provide-theme 'my-base16-light) (provide-theme 'my-base16-light)