Display and modify the Discordian date with Emacs
Add a README.md because of Sourcehut
Add instructions for installing with MELPA
Making shell-command-to-string call more robust


browse  log 



You can also use your local clone with git send-email.

#Table of Contents

  1. Installation
  2. Usage

This package provides support for the ddate command.


This package is now available on MELPA, 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 quelpa-use-package.

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


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

I like to use it with 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))))