Compare commits
3 Commits
2ba07d3ba9
...
2adc03c10d
| Author | SHA1 | Date | |
|---|---|---|---|
| 2adc03c10d | |||
| abd4dbb085 | |||
| 5a840488b5 |
20
init.el
20
init.el
@@ -3,6 +3,7 @@
|
||||
;; This file loads Org and then loads the rest of our Emacs initialization from Emacs lisp
|
||||
;; embedded in literate Org files.
|
||||
|
||||
(setq straight-check-for-modifications '(check-on-save find-when-checking))
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name
|
||||
@@ -19,24 +20,11 @@
|
||||
(eval-print-last-sexp)))
|
||||
(load bootstrap-file nil 'nomessage))
|
||||
|
||||
(setq straight-vc-git-default-clone-depth '(1 single-branch)) ;; instead of the default 'full
|
||||
|
||||
(straight-use-package 'org)
|
||||
|
||||
;; Load up Org Mode and (now included) Org Babel for elisp embedded in Org Mode files
|
||||
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
|
||||
|
||||
(let* ((org-dir (expand-file-name
|
||||
"lisp" (expand-file-name
|
||||
"org" (expand-file-name
|
||||
"src" dotfiles-dir))))
|
||||
(org-contrib-dir (expand-file-name
|
||||
"lisp" (expand-file-name
|
||||
"contrib" (expand-file-name
|
||||
".." org-dir))))
|
||||
(load-path (append (list org-dir org-contrib-dir)
|
||||
(or load-path nil))))
|
||||
;; load up Org and Org-babel
|
||||
(require 'org)
|
||||
(require 'ob-tangle))
|
||||
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
|
||||
|
||||
;; load up all literate org-mode files in this directory
|
||||
(mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$"))
|
||||
|
||||
7
main.org
7
main.org
@@ -12,7 +12,8 @@
|
||||
** Straight.el
|
||||
|
||||
Package management to be a little more fien/precise and work outside
|
||||
of Nix (as much as it would be nice to work inside of Nix too)
|
||||
of Nix (as much as it would be nice to work inside of Nix too). This
|
||||
is actually contained within =init.el=
|
||||
|
||||
#+begin_src elisp :tangle no :exports code
|
||||
(defvar bootstrap-version)
|
||||
@@ -648,9 +649,9 @@ e.g. meetings, deadlines and whatever else:
|
||||
:config
|
||||
(add-hook 'org-capture-mode-hook #'org-id-get-create)
|
||||
(setq org-capture-templates
|
||||
'(("t" "Todo" entry (file+headline "todo.org" "Tasks")
|
||||
'(("t" "Todo" entry (file+headline "todos.org" "Tasks")
|
||||
"* TODO %^{Todo?} %^G\nSCHEDULED: %^t\n:PROPERTIES:\n:ADDED: %U\n:END:\n %i\n %a \n%?\n")
|
||||
("h" "Habit" entry (file+headline "todo.org" "Habits")
|
||||
("h" "Habit" entry (file+headline "todos.org" "Habits")
|
||||
"* TODO %^{Habit} %^G\nSCHEDULED: %^T\n:PROPERTIES:\n:STYLE: habit\n:ADDED: %U\n:END:\n%?\n")
|
||||
("j" "Journal" entry (file+datetree "journal.org")
|
||||
"* %^{Journal Entry:} %^G\nEntered on %U\n %i\n:PROPERTIES:\n:ADDED: %U\n:END:\n %a\n%?\n")
|
||||
|
||||
Reference in New Issue
Block a user