dotfiles/config/dot_config/doom/config.org

103 lines
2.5 KiB
Org Mode
Raw Normal View History

2024-02-01 15:50:30 +01:00
#+TITLE: Literate Doom Emacs Config
#+AUTHOR: Inhji
#+PROPERTY: header-args :tangle config.el
2024-02-02 09:28:35 +01:00
#+auto_tangle: t
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
* Table of contents :toc:
- [[#notes][Notes]]
- [[#base-setup][Base Setup]]
- [[#appearance][Appearance]]
- [[#org-mode][Org Mode]]
- [[#org-agenda][Org Agenda]]
- [[#org-auto-tangle][Org Auto Tangle]]
- [[#org-capture][Org Capture]]
- [[#org-directory][Org Directory]]
- [[#org-hooks][Org Hooks]]
- [[#org-journal][Org Journal]]
* Notes
Remember, you do not need to run 'doom sync' after modifying this file!
2024-02-01 15:50:30 +01:00
* Base Setup
2024-02-02 09:28:35 +01:00
This codeblock should be the first in this file!
2024-02-01 15:50:30 +01:00
#+begin_src emacs-lisp
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
2024-02-02 09:28:35 +01:00
;; config.el
2024-02-01 15:50:30 +01:00
#+end_src
#+begin_src emacs-lisp
(setq user-full-name "Jonathan Jenne"
user-mail-address "johnnie@posteo.de")
2024-02-02 09:28:35 +01:00
(setq shell-file-name (executable-find "bash"))
2024-02-01 15:50:30 +01:00
#+end_src
* Appearance
#+begin_src emacs-lisp
2024-02-02 09:28:35 +01:00
(setq display-line-numbers-type t)
2024-02-01 15:50:30 +01:00
(setq doom-theme 'doom-one)
#+end_src
2024-02-02 09:28:35 +01:00
* Org Mode
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
** Org Agenda
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
#+begin_src emacs-lisp
2024-02-01 15:50:30 +01:00
(after! org (setq
org-agenda-show-all-dates nil
org-agenda-span 2
org-agenda-start-day "+0d"
org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)
org-agenda-time-grid
'((daily today require-timed)
(800 1000 1200 1400 1600 1800 2000)
" ┄┄┄┄┄ " "┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄")
org-agenda-current-time-string
"◀── now ──────────────────────────────────────────────── \\o/"
org-agenda-block-separator ?─
;; Consider all org files part of the org-agenda
org-agenda-files (list "~/Notes/Org")))
2024-02-02 09:28:35 +01:00
#+end_src
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
** Org Auto Tangle
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
#+begin_src emacs-lisp
(setq org-auto-tangle-default nil)
#+end_src
** Org Capture
#+begin_src emacs-lisp
(after! org (setq +org-capture-notes-file "Notes.org"
+org-capture-todo-file "Todo.org"))
#+end_src
** Org Directory
#+begin_src emacs-lisp
(setq org-directory "~/Notes/Org")
#+end_src
** Org Hooks
#+begin_src emacs-lisp
2024-02-01 15:50:30 +01:00
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
2024-02-02 09:28:35 +01:00
(add-hook 'org-mode-hook 'org-auto-tangle-mode)
#+end_src
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
** Org Journal
2024-02-01 15:50:30 +01:00
2024-02-02 09:28:35 +01:00
#+begin_src emacs-lisp
(setq org-journal-date-prefix "#+TITLE: "
org-journal-time-prefix "* "
org-journal-date-format "%a, %Y-%m-%d"
org-journal-file-format "%Y/%m/%Y-%m-%d.org"
org-journal-dir "~/Notes/Org/Journal")
2024-02-01 15:50:30 +01:00
#+end_src
2024-02-02 09:28:35 +01:00