doomemacs/modules/config
richard134 21682009b1
feat(lib): add toggle scratch buffer commands
Add `doom/toggle-scratch-buffer` and `doom/toggle-project-scratch-buffer`
commands that toggle scratch buffer visibility, consistent with how
`SPC o t` toggles the terminal popup.

Also extract mode determination logic into `doom--scratch-buffer-initial-mode`
helper to ensure toggle commands respect `doom-scratch-initial-major-mode`
configuration (including mode inheritance when set to `t`).

Keybindings updated to use toggle variants:
- `SPC x` (evil) / `C-c f x` (emacs) for scratch buffer
- `SPC p x` (evil) / `C-c p x` (emacs) for project scratch buffer

Fix: #8604
2025-12-24 18:24:01 -05:00
..
default feat(lib): add toggle scratch buffer commands 2025-12-24 18:24:01 -05:00
literate refactor: (if|when)-let -> (if|when)-let* 2025-01-08 19:33:37 -05:00
use-package bump: :term :input :config :checkers 2025-12-01 23:56:53 -05:00
.doommodule feat: add .doommodule files 2024-09-14 20:47:39 -04:00
README.org revert: fix(docs): set mode in file-local vars 2022-08-07 19:08:07 +02:00

:config

Description

Modules in this category provide sane defaults or improve your ability to configure Emacs. It is best to load these last.

Frequently asked questions

This category has no FAQs yet. Ask one?