Do not follow this link

~earneson/emacs-ddate

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

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~earneson/emacs-ddate
read/write
git@git.sr.ht:~earneson/emacs-ddate

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.

#Installation

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)
(package-initialize)

(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"))

#Usage

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)
  :config
  ;; 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))))
Do not follow this link