doomemacs/lisp/lib
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
..
autoloads.el fix(lib): void-variable type 2025-09-25 03:29:56 -04:00
buffers.el refactor: (if|when)-let -> (if|when)-let* 2025-01-08 19:33:37 -05:00
config.el fix(lib): doom/reload: quote $EMACS 2025-09-01 14:24:12 +02:00
debug.el tweak(lib): doom-debug-variables: add epg-debug 2025-07-13 22:28:34 +02:00
docs.el refactor(lib): add provide lines 2024-10-02 05:15:58 -04:00
files.el fix(lib): doom-file-read: (read . N) spec 2025-09-14 11:52:29 -04:00
fonts.el refactor(lib): add provide lines 2024-10-02 05:15:58 -04:00
git.el refactor(lib): provide doom-libs as subfeatures 2022-09-08 00:20:26 +02:00
help.el fix(lib): autoload doom/describe-char 2025-05-05 02:45:45 -04:00
modules.el refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
packages.el fix(lib): package!: add :env property 2025-09-22 23:30:03 -04:00
plist.el refactor(lib): deprecate doom-plist-get 2024-11-15 04:08:23 -05:00
print.el fix(lib): print!: lost newlines in output 2025-12-07 17:51:35 -05:00
process.el refactor(lib): provide doom-libs as subfeatures 2022-09-08 00:20:26 +02:00
profiles.el fix(lib): package!: add :env property 2025-09-22 23:30:03 -04:00
projects.el fix(lib): doom-project-find-file: allow arbitrary roots 2025-06-10 21:29:00 +02:00
sandbox.el fix(lib): doom/sandbox: tree-sitter extra load path 2025-09-21 19:43:52 -04:00
scratch.el feat(lib): add toggle scratch buffer commands 2025-12-24 18:24:01 -05:00
sessions.el refactor(lib): add provide lines 2024-10-02 05:15:58 -04:00
store.el refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
strings.el refactor(lib): add provide lines 2024-10-02 05:15:58 -04:00
system.el refactor(cli): doctor: extract symlink check to function 2025-04-11 12:17:48 -04:00
text.el module!: add :editor whitespace 2025-09-24 02:23:30 -04:00
themes.el refactor: swap load-theme advice for enable-theme-functions 2025-01-08 19:33:33 -05:00
ui.el refactor(lib): doom/set-frame-opacity 2025-08-11 01:22:40 +02:00