Skip to content

narendraj9/quoted-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Beautiful quotes for your Emacs *scratch* buffer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published