diff options
| author | bard <[email protected]> | 2024-03-22 21:47:19 -0400 |
|---|---|---|
| committer | bard <[email protected]> | 2024-03-22 21:47:19 -0400 |
| commit | 68c18e860f9f72c029f52701483aabe90d340e5c (patch) | |
| tree | b83d18c0bf029e17a7164a0e57b9f12790a07dc2 /bard-elisp/bard-scratch.el | |
| parent | 3a10c903d0ca52e3fe1489def9c09d5b297ed773 (diff) | |
move scratch to own library
Diffstat (limited to 'bard-elisp/bard-scratch.el')
| -rw-r--r-- | bard-elisp/bard-scratch.el | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bard-elisp/bard-scratch.el b/bard-elisp/bard-scratch.el new file mode 100644 index 0000000..7775336 --- /dev/null +++ b/bard-elisp/bard-scratch.el @@ -0,0 +1,32 @@ +;; Text Scratch buffers +(defun bard/new-org-buffer () + (interactive) + (let ((xbuf (generate-new-buffer "*org*"))) + (switch-to-buffer xbuf) + (funcall (quote org-mode)) + (text-scale-increase 1.5) + xbuf)) +(define-key global-map (kbd "M-=") #'bard/new-org-buffer) + +(defun bard/new-plain-buffer () + (interactive) + (let ((xbuf (generate-new-buffer "*plain*"))) + (switch-to-buffer xbuf) + (text-scale-increase 1.5) + xbuf)) + +(define-key global-map (kbd "M--") #'bard/new-plain-buffer) + +;; elisp scratch buffer + +(defun bard/new-elisp-buffer () + (interactive) + (let ((xbuf (generate-new-buffer "*elisp*"))) + (switch-to-buffer xbuf) + (funcall (quote emacs-lisp-mode)) + (text-scale-increase 1.5) + xbuf)) + +(define-key global-map (kbd "C-z C-s") #'bard-new-elisp-buffer) + +(provide 'bard-scratch.el) |
