Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Extensions for *scratch* buffer of Emacs
Emacs Lisp
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
scratch-ext.el

README.md

scratch-ext.el

scratch-ext.el is extensions for *scratch* buffer.

This enables you to dump *scratch* buffer automatically when it is killed or Emacs quits.

In addition,

  • killing *scratch* becomes simply (erase-buffer) it, so you can easily undo.
  • after you save *scratch* to file by hand, new *scratch* buffer is created.

Usage

Add following line to your start up file:

(require 'scratch-ext)

Log file goes to ~/.scratch directory by default. You can change this by customizing `scratch-ext-log-directory'.

You can bind a key for scratch-ext-insert-newest-log' and scratch-ext-restore-last-scratch' if you prefer:

(global-set-key (kbd "C-c i") 'scratch-ext-insert-newest-log)
(global-set-key (kbd "C-c r") 'scratch-ext-restore-last-scratch)

LICENSE

This is licensed under the MIT License.

Author

Kouhei Yanagita <yanagi at shakenbu.org>

Something went wrong with that request. Please try again.