Skip to content
/ yaps Public

Yet Another Persistent Scratch. Yaps makes your *scratch* buffer persistent and not killable (bury instead).

License

Notifications You must be signed in to change notification settings

rayw000/yaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yaps - Yet Another Persistent Scratch

Introduction

Yaps makes your *scratch* buffer persistent and not killable (bury instead).

Install

If you don't have ELPA package in your Emacs, clone this repository and load file.

git clone https://github.com/rayw000/yaps.git
(load-file "/path/to/yaps/yaps.el")

Or install with ELPA

M-x package-install <RET> yaps <RET>

Usage

(require 'yaps)
(yaps-setup)

You may want to hook yaps-setup to emacs-startup-hook.

(add-hook 'emacs-startup-hook 'yaps-setup)

Functions

  • yaps-save-scratch-data: Save scratch contents into yaps-data-directory. C-x C-s is remapped to this function.
  • yaps-clear-scratch-data: Clear scratch contents.
  • yaps-bury-scratch-buffer: Bury (instead of kill) scratch buffer.
  • yaps-restore-data-from-file: Restore data from yaps data file.

Customizations

Variables
  • yaps-scratch-buffer-name: Buffer name which you want to use yaps with, default to *scratch*.
  • yaps-data-directory: Directory to store yaps data file yaps.data.
Key bindings

You can bind your favorite keys in yaps-mode-map. For example,

(define-key yaps-mode-map (kbd "C-c C-r") 'yaps-restore-data-from-file)

Similar packages

persistent-scratch

About

Yet Another Persistent Scratch. Yaps makes your *scratch* buffer persistent and not killable (bury instead).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published