ba9935629060d4bc067724c103c6c1037c34e3aa — Erik L. Arneson 1 year, 8 months ago 2485705 master
Add a README.md because of Sourcehut

Sourcehut doesn't support org-mode README files, so I made a markdown version.
1 files changed, 58 insertions(+), 0 deletions(-)

A README.md => README.md +58 -0
@@ 0,0 1,58 @@

# Table of Contents

1.  [Installation](#orgd5b246c)
2.  [Usage](#org4c0bef7)

This package provides support for the [ddate](https://github.com/bo0ts/ddate) command.

<a id="orgd5b246c"></a>

# Installation

This package is now available on [MELPA](https://melpa.org/), so you can install it by adding MELPA to your list of
packages and then using `use-package` like this:

    (require 'package)
    (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
    (use-package ddate
      :ensure t)

You can also install this package directly from this repository via `use-package` and

    (use-package ddate
      :ensure-system-package ddate
      :quelpa (ddate :fetcher git :url "https://git.sr.ht/~earneson/emacs-ddate"))

<a id="org4c0bef7"></a>

# Usage

Use the `ddate` and `ddate-pretty` functions to do fun things.

I like to use it with [dashboard](https://github.com/emacs-dashboard/emacs-dashboard) like this:

    (defun ela/dashboard-insert-ddate (list-size)
      "Insert the Discordian date into the dashboard."
      (let ((ddate-string (ddate-pretty)))
        (dashboard-center-line ddate-string)
        (insert ddate-string)))
    (use-package dashboard
      :init (dashboard-setup-startup-hook)
      ;; Add the ddate item provider to the list.
      (add-to-list 'dashboard-item-generators
                   '(ddate . ela/dashboard-insert-ddate))
      ;; Set up your items with ddate at the top.
      (setq dashboard-items '((ddate)
                              (recents   . 5)
                              (bookmarks . 5)
                              (registers . 5))))