From ebd439a84180b6f3258be43ac3ce3788cbe21b6d Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 5 Nov 2025 01:00:38 -0600 Subject: feat: Configure scratch buffer for org-mode with cursor at end MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set initial-major-mode to org-mode for *scratch* buffer - Add emacs-startup-hook to position cursor at end of buffer - Update greeting message comment syntax from ;; to # for org-mode - Re-enable debug flag reset on startup in early-init.el This makes the scratch buffer immediately ready for org-mode note-taking with cursor positioned for typing, eliminating manual mode switching and cursor movement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/NOTES.org | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'docs') diff --git a/docs/NOTES.org b/docs/NOTES.org index a9913bfa..f04d03d0 100644 --- a/docs/NOTES.org +++ b/docs/NOTES.org @@ -515,6 +515,40 @@ If Craig or Claude need more context: ** 🚀 Current Session Notes +*** 2025-11-05 Session 2 - Scratch Buffer Configuration +*Time:* ~5 minutes +*Status:* ✅ COMPLETE - Scratch buffer opens in org-mode with cursor at end + +*Problem:* +- Scratch buffer opened in lisp-interaction-mode +- Cursor positioned at beginning of buffer +- Craig wanted org-mode with cursor ready to type at end + +*Solution:* +1. **Set scratch buffer to org-mode** - `(setopt initial-major-mode 'org-mode)` +2. **Move cursor to end on startup** - Added `emacs-startup-hook` to position cursor +3. **Updated comment syntax** - Changed `;;` to `#` in greeting messages for org-mode + +*Files Modified:* +- modules/system-utils.el:186-203 + - Added `initial-major-mode` configuration + - Added startup hook for cursor positioning + - Updated greeting message comment syntax for org-mode compatibility + +*Technical Details:* +- Used `emacs-startup-hook` to run after init completes +- Buffer name check ensures we only affect *scratch* buffer +- Greeting message now uses org-mode comment syntax (#) + +*Testing:* +- Configuration updated in modules/system-utils.el:197-203 +- Requires restart or eval-buffer to take effect + +*Next Steps:* +- Restart Emacs or evaluate modules/system-utils.el +- Verify scratch buffer opens in org-mode +- Verify cursor positioned at end of buffer + *** 2025-11-05 Session 1 - Fix Google Calendar Password Prompts *Time:* ~15 minutes *Status:* ✅ COMPLETE - Fixed irritating password prompts every 10 minutes -- cgit v1.2.3