add way to open scratch buffer frame with a prompt on major mode to use

This commit is contained in:
KemoNine 2023-04-12 18:18:53 -04:00
parent 2963e3c323
commit bb7162a9e9
1 changed files with 11 additions and 0 deletions

View File

@ -141,3 +141,14 @@
(scratch 'text-mode)
)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; scratch buffers frame, prompt for initial mode - use 'scratch and prompts to manage as needed
(defun kmn/workspace-frame-scratch-prompt()
(interactive)
(let ((frame (make-frame)))
(select-frame-set-input-focus frame)
(delete-other-windows)
(scratch (let ((current-prefix-arg t)) (scratch--buffer-querymode)))
)
)