Delete denote package

This commit is contained in:
Tobias Ostner 2024-04-12 09:34:59 +02:00
parent 50264a0630
commit fce621fc44

View file

@ -125,29 +125,6 @@
(use-package dash)
(use-package denote
:bind (("C-c n n" . denote)
("C-c n l" . denote-link)
("C-c n b" . denote-link-backlinks))
:config
(setq denote-directory (expand-file-name "~/TobCloud/org/notes"))
(defun to/denote-journal()
"Create an entry tagged 'journal' with the data as its title.
If a journal for the current day exists, visit it. If multiple
entries exist, prompt with completion for a choice between them.
Else create a new file."
(interactive)
(let* ((today (format-time-string "%A %e %B %Y"))
(string (denote-sluggify today))
(files (denote-directory-files-matching-regexp string)))
(cond
((> (length files) 1)
(find-file (completing-read "Select file: " files nil :require-match)))
(files
(find-file (car files)))
(t
(denote today '("journal")))))))
(use-package dired
:ensure nil
:init