aboutsummaryrefslogtreecommitdiff
path: root/bard-elisp/bard-scratch.el
diff options
context:
space:
mode:
authorbard <[email protected]>2024-03-22 21:47:19 -0400
committerbard <[email protected]>2024-03-22 21:47:19 -0400
commit68c18e860f9f72c029f52701483aabe90d340e5c (patch)
treeb83d18c0bf029e17a7164a0e57b9f12790a07dc2 /bard-elisp/bard-scratch.el
parent3a10c903d0ca52e3fe1489def9c09d5b297ed773 (diff)
move scratch to own library
Diffstat (limited to 'bard-elisp/bard-scratch.el')
-rw-r--r--bard-elisp/bard-scratch.el32
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)