feat(emacs): Scratch buffer
This commit is contained in:
@@ -54,4 +54,5 @@
|
|||||||
syd/minibuffer
|
syd/minibuffer
|
||||||
syd/auto-save
|
syd/auto-save
|
||||||
syd/rainbow-delimiters
|
syd/rainbow-delimiters
|
||||||
syd/form-feed))
|
syd/form-feed
|
||||||
|
syd/scratch))
|
||||||
|
|||||||
20
modules/home/users/msyds/emacs/lisp/syd/scratch.el
Normal file
20
modules/home/users/msyds/emacs/lisp/syd/scratch.el
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
;;; -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(require 'syd/base)
|
||||||
|
|
||||||
|
;; Persistent and per-project scratch buffers.
|
||||||
|
(use-package scratch-plus
|
||||||
|
:hook after-init
|
||||||
|
:custom ((scratch-plus-save-directory
|
||||||
|
(file-name-concat syd-data-dir "scratch"))
|
||||||
|
(scratch-plus-project-subdir "scratch")))
|
||||||
|
|
||||||
|
(setq
|
||||||
|
;; Disable the initial "help" screen, in favour of starting off in
|
||||||
|
;; the scratch buffer.
|
||||||
|
inhibit-splash-screen t
|
||||||
|
inhibit-startup-screen t
|
||||||
|
inhibit-startup-message t
|
||||||
|
initial-buffer-choice t)
|
||||||
|
|
||||||
|
(provide 'syd/scratch)
|
||||||
Reference in New Issue
Block a user