From ebc40717b441075d107d78487fa533b4b9f0379f Mon Sep 17 00:00:00 2001 From: Inhji Date: Sun, 28 Jan 2024 09:35:19 +0100 Subject: [PATCH] Add org-modern, style agenda --- config/dot_config/doom/config.el | 36 +++++++++++++++++++++++++----- config/dot_config/doom/init.el | 2 +- config/dot_config/doom/packages.el | 2 ++ 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/config/dot_config/doom/config.el b/config/dot_config/doom/config.el index fd5c746..f8fa422 100644 --- a/config/dot_config/doom/config.el +++ b/config/dot_config/doom/config.el @@ -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. ;; diff --git a/config/dot_config/doom/init.el b/config/dot_config/doom/init.el index a55152d..7f9406f 100644 --- a/config/dot_config/doom/init.el +++ b/config/dot_config/doom/init.el @@ -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 diff --git a/config/dot_config/doom/packages.el b/config/dot_config/doom/packages.el index 364e6e9..38846b7 100644 --- a/config/dot_config/doom/packages.el +++ b/config/dot_config/doom/packages.el @@ -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