Skip to content
Beautiful quotes for your Emacs *scratch* buffer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_assets
README.md
quoted-scratch.el

README.md

quoted-scratch

Beautiful quotes for your Emacs scratch buffer.

Quotes

Installation

Clone this repository or download it as zip. Add it to your load-path:

  (add-to-list 'load-path "/path/to/quoted-scratch/dir/")

Setup

(require 'quoted-scratch)
(setq initial-scratch-message nil)

(add-hook 'emacs-startup-hook
            (lambda ()
              (run-with-timer 1 nil 'qs-refresh-scratch-buffer)
              (qs-refresh-quote-when-idle)))

;; You can add new quotes to the collection or have the Quote of the Day from
;; [http://quotes.rest/](http://quotes.rest).
;; For the latter:

(add-hook 'emacs-startup-hook
            (lambda ()
              (run-with-timer 1 nil 'qs-fetch-qod))

If you use use-package, add this to your init:

(use-package quoted-scratch
  :load-path "/path/to/quoted-scratch/dir/"
  :demand t
  :config
  (setq initial-scratch-message nil)
  (add-hook 'emacs-startup-hook
            (lambda ()
              (run-with-timer 1 nil 'qs-refresh-scratch-buffer)
              (qs-refresh-quote-when-idle))))

Configuration

For configuring the look and feel of the displayed quotes, customize the group quoted-scratch with M-x customize-group.

You can’t perform that action at this time.