From 63e7c3ba87c9d07bf9a4a56e3a702f44581dcb89 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 20 Oct 2025 13:28:27 -0500 Subject: docs: modeline: Update commentary for performance optimizations Add detailed explanations regarding performance optimizations in Doom modeline settings. This includes prioritizing speed by disabling minor features and tuning performance with specific settings such as refresh rate and process output size. --- modules/modeline-config.el | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/modeline-config.el b/modules/modeline-config.el index 2e6ed6e61..0a247732a 100644 --- a/modules/modeline-config.el +++ b/modules/modeline-config.el @@ -3,6 +3,26 @@ ;;; Commentary: +;; Doom modeline configuration with performance optimizations. + +;; Settings prioritize speed while keeping essential information including: +;; - relative file paths from project root +;; - column number and percentage position +;; - buffer modification indicators +;; - and major mode with icon. + +;; Disabled features for performance: +;; - minor modes display +;; - word count +;; - encoding info +;; - LSP information + +;; Performance tuning includes: +;; - 0.75 second refresh rate +;; - 1MB process output chunks +;; - nerd-icons (faster than all-the-icons) +;; - simplified checker format +;; - limited VCS info length ;;; Code: @@ -47,9 +67,9 @@ (doom-modeline-buffer-name t) ;; Show buffer name (doom-modeline-buffer-file-name t) ;; Show file name :config + (setq read-process-output-max (* 1024 1024)) ;; 1MB process read size for better performance (setq doom-modeline-refresh-rate 0.75)) ;; Update rate in seconds -;; (setq read-process-output-max (* 1024 1024)) ;; 1MB process read size for better performance (provide 'modeline-config) ;;; modeline-config.el ends here -- cgit v1.2.3