Add org-modern, style agenda

This commit is contained in:
Inhji 2024-01-28 09:35:19 +01:00
parent 0626369321
commit ebc40717b4
3 changed files with 34 additions and 6 deletions

View File

@ -3,11 +3,10 @@
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
;; (setq user-full-name "John Doe"
;; user-mail-address "john@doe.com")
(setq user-full-name "Jonathan Jenne"
user-mail-address "johnnie@posteo.de")
;; Doom exposes five (optional) variables for controlling fonts in Doom:
;;
@ -32,7 +31,7 @@
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme 'doom-one)
(setq doom-theme 'doom-tokyo-night)
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
@ -40,11 +39,38 @@
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")
(setq org-directory "~/Notes/Org")
;; Hide empty days in agenda
(setq org-agenda-show-all-dates nil
org-agenda-span 2
org-agenda-start-day "+0d"
org-agenda-time-grid
'((daily today require-timed)
(800 1000 1200 1400 1600 1800 2000)
" ┄┄┄┄┄ " "┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄")
org-agenda-current-time-string
"◀── now ─────────────────────────────────────────────────"
org-agenda-block-separator ?─
;; Consider all org files part of the org-agenda
org-agenda-files (list "~/Notes/Org"))
;; Custom Agenda Commands
(setq org-agenda-custom-commands
'(("v" "A better agenda View"
(
(agenda ""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "Agenda, unfinished")))
))))
;; Set bash as the default shell to run Emacs in since fish can cause problems
(setq shell-file-name (executable-find "bash"))
;; Initialize org-modern
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;

View File

@ -125,7 +125,7 @@
;;data ; config/data formats
;;(dart +flutter) ; paint ui and not much else
;;dhall
;;elixir ; erlang done right
elixir ; erlang done right
;;elm ; care for a cup of TEA?
emacs-lisp ; drown in parentheses
;;erlang ; an elegant language for a more civilized age

View File

@ -9,6 +9,8 @@
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;; (package! some-package)
(package! org-modern)
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/radian-software/straight.el#the-recipe-format