diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-05 01:00:38 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-05 01:00:38 -0600 |
| commit | ebd439a84180b6f3258be43ac3ce3788cbe21b6d (patch) | |
| tree | aec5334785e62bd54857df3ddfc699e896848913 /docs | |
| parent | 76b7a15d7eaeaff81874d922d5ce2b0090eb7c98 (diff) | |
feat: Configure scratch buffer for org-mode with cursor at end
- 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 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/NOTES.org | 34 |
1 files changed, 34 insertions, 0 deletions
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 |
