doomemacs/lisp
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
..
cli fix(cli): upgrade: don't 'doom sync' if aborted 2025-12-13 18:10:28 -05:00
lib feat(lib): add toggle scratch buffer commands 2025-12-24 18:24:01 -05:00
modules module: move :core to :doom 2025-09-18 22:48:07 -04:00
.doommodule feat: add .doommodule files 2024-09-14 20:47:39 -04:00
demos.org refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
doom-cli.el tweak(cli): only display the last, failed straight command 2025-09-22 23:30:03 -04:00
doom-compat.el refactor(lib): move fringe/fontset autodefs to doom-compat 2025-09-17 01:23:45 -04:00
doom-editor.el fix: auto-save prefix 2025-12-23 19:04:25 -05:00
doom-elpaca.el refactor!: restructure Doom core 2024-11-03 01:52:28 -05:00
doom-keybinds.el refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
doom-lib.el fix(lib): package!: add :env property 2025-09-22 23:30:03 -04:00
doom-projects.el refactor: s/doom-projectile-cache-dir/doom-project-cache-dir/ 2025-09-24 13:20:56 -04:00
doom-start.el fix: clipboard issues on Windows + WSL 2025-03-26 07:55:36 -04:00
doom-straight.el tweak: do *not* download package archives by default 2025-09-26 00:15:54 -04:00
doom-ui.el module!: add :editor whitespace 2025-09-24 02:23:30 -04:00
doom.el docs: clarify Emacs version requirements 2025-12-18 02:45:42 -05:00
init.el dev: replace .doomrc w/ .doom.el 2025-06-30 15:23:27 +02:00
packages.el bump: :doom 2025-12-01 01:14:54 -05:00