Created
July 28, 2024 16:52
-
-
Save aclarknexient/87518aee8a0fbc9c9050723a97b44799 to your computer and use it in GitHub Desktop.
Barebones init.el to load Org-Journal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq package-enable-at-startup nil) | |
;; Now we need MELPA | |
(require 'package) | |
(setq package-archives | |
'(("MELPA" . "https://melpa.org/packages/") | |
("GNU ELPA" . "https://elpa.gnu.org/packages/"))) | |
(package-initialize) | |
(defvar bootstrap-version) | |
(let ((bootstrap-file | |
(expand-file-name | |
"straight/repos/straight.el/bootstrap.el" | |
(or (bound-and-true-p straight-base-dir) | |
user-emacs-directory))) | |
(bootstrap-version 7)) | |
(unless (file-exists-p bootstrap-file) | |
(with-current-buffer | |
(url-retrieve-synchronously | |
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" | |
'silent 'inhibit-cookies) | |
(goto-char (point-max)) | |
(eval-print-last-sexp))) | |
(load bootstrap-file nil 'nomessage)) | |
(setq straight-use-package-by-default t) | |
;; use-package | |
(eval-when-compile | |
(require 'use-package)) | |
;; https://github.com/bastibe/org-journal | |
(use-package org-journal | |
:bind | |
("C-c n j" . org-journal-new-entry) | |
("C-c j" . org-journal-open-current-journal-file) | |
:custom | |
(org-journal-file-format "%Y-%m-%d.org") | |
(org-journal-file-type 'weekly) | |
(org-journal-dir "~/Org/Journal/") | |
(org-journal-date-format "%Y-%m-%d") | |
(org-journal-carryover-items "TODO=\"TODO\"|TODO=\"NEXT\"|TODO=\"PROG\"") | |
(org-journal-enable-agenda-integration t) | |
(org-journal-find-file 'find-file)) | |
(setq org-directory "~/Org/") | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(org-agenda-files '("/REDACTED/Org/Journal/2024-07-22.org")) | |
'(org-journal-find-file-fn 'find-file nil nil "Customized with use-package org-journal")) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment