aboutsummaryrefslogtreecommitdiff
path: root/modules/modeline-config.el
Commit message (Collapse)AuthorAgeFilesLines
* fix: Resolve async buffer error and improve modeline spacingCraig Jennings2025-11-041-1/+2
| | | | | | | | | | | | - Fixed critical "Selecting deleted buffer" error on startup - wttrin-mode-line-mode now activates after init completes - Uses after-init-hook to prevent async buffer deletion - Weather widget loads safely after Emacs finishes initializing - Improved modeline right-side spacing - Added 2 non-breaking spaces after misc-info segment - Prevents weather icon from appearing flush with edge - Non-breaking spaces survive right-align trimming
* style: Fix checkdoc linting errors in modeline-config.elCraig Jennings2025-11-031-5/+5
| | | | | | | | | | | Fixed 4 categories of checkdoc warnings: - Removed embedded keycodes (mouse-1, mouse-3) from docstrings - Added double spaces after periods - Quoted Lisp symbols with backticks - Changed single quotes to backticks in examples All docstrings now follow Emacs documentation conventions. Passes checkdoc and byte-compilation cleanly.
* feat: Complete modeline overhaul with custom segments and interactive featuresCraig Jennings2025-11-031-15/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced mood-line with a custom, minimal modeline using only built-in Emacs functionality to avoid native compilation issues. **Architecture:** - Named segment system using defvar-local for easy reordering - Emacs 30 built-in right-alignment (mode-line-format-right-align) - All segments marked as risky-local-variable for proper evaluation **Features:** - Color-coded buffer names (green=writeable, red=read-only, gold=overwrite) - VC branch with git symbol (U+E0A0) and state-based coloring - Position format: L:line C:col - Help-echo tooltips on all segments - Mouse click handlers for interactive actions - String truncation in narrow windows (< 100 chars) - Active-window-only display for branch and misc-info **Interactive Actions:** - Buffer name: mouse-1 = prev-buffer, mouse-3 = next-buffer - Major mode: mouse-1 = describe-mode - Git branch: mouse-1 = vc-diff, mouse-3 = vc-root-diff **Bug Fixes:** - Disabled async native compilation to prevent "Selecting deleted buffer" errors - Fixed difftastic loading by changing :demand to :defer - Abstracted buffer status colors to user-constants.el for reuse Inspired by Prot's modeline design patterns.
* refactor: Replace doom-modeline with mood-line and remove deprecated tree-sitterCraig Jennings2025-11-031-59/+15
| | | | | | | | | | | | | | | | | | | | | | | | Method 2 improvements for cleaner, faster configuration: 1. **Replaced doom-modeline with mood-line** (modules/modeline-config.el) - Simplified from 70+ lines to ~10 lines (-40 lines net) - mood-line is lightweight, minimal, inspired by doom-modeline - Better performance with no dependencies - Keeps all essential features: buffer status, major mode, VCS, flycheck, cursor position, multiple-cursors counters 2. **Removed deprecated tree-sitter package** (modules/prog-general.el) - Deleted `(use-package tree-sitter)` - Now relies solely on Emacs 29+ built-in treesit with treesit-auto - treesit-auto continues to manage grammars automatically - No functionality lost, cleaner dependency tree Both changes serve Method 2: "Stop Problems Before They Appear" - Simpler code = fewer bugs - Fewer dependencies = less maintenance - Native features = better integration Updated todo.org to mark both tasks complete [2/5 in Method 2].
* docs: modeline: Update commentary for performance optimizationsCraig Jennings2025-10-201-1/+21
| | | | | | | 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.
* changing repositoriesCraig Jennings2025-10-121-0/+55