From 5366c2433235f08b5296351dd6d4ccc987a44151 Mon Sep 17 00:00:00 2001 From: Inhji Date: Wed, 7 Feb 2024 08:36:21 +0100 Subject: [PATCH] doom: switch back to normal elisp file --- config/dot_config/doom/config.el | 7 +- config/dot_config/doom/config.org | 138 ------------------------------ 2 files changed, 5 insertions(+), 140 deletions(-) delete mode 100644 config/dot_config/doom/config.org diff --git a/config/dot_config/doom/config.el b/config/dot_config/doom/config.el index 78ea603..60b9c53 100644 --- a/config/dot_config/doom/config.el +++ b/config/dot_config/doom/config.el @@ -10,10 +10,13 @@ (setq shell-file-name (executable-find "bash")) -(map! "" #'org-agenda-list) +;; This will add a key combination oF F-1-2 breaking basic typing lol +;;(map! "" #'org-agenda-list) (setq display-line-numbers-type t) -(setq doom-theme 'doom-one) +(setq doom-theme 'doom-gruvbox) + +(setq dashboard-startup-banner nil) (setq org-src-tab-acts-natively t) diff --git a/config/dot_config/doom/config.org b/config/dot_config/doom/config.org deleted file mode 100644 index ef0bcd3..0000000 --- a/config/dot_config/doom/config.org +++ /dev/null @@ -1,138 +0,0 @@ -#+TITLE: Literate Doom Emacs Config -#+AUTHOR: Inhji -#+PROPERTY: header-args :tangle config.el -#+auto_tangle: t - -* Table of contents :toc: -- [[#notes][Notes]] -- [[#config-basics][Config Basics]] -- [[#keybindings][Keybindings]] -- [[#appearance][Appearance]] -- [[#org-mode][Org Mode]] - - [[#org-basics][Org Basics]] - - [[#org-agenda][Org Agenda]] - - [[#org-auto-tangle][Org Auto Tangle]] - - [[#org-capture][Org Capture]] - - [[#org-directory][Org Directory]] - - [[#org-hooks][Org Hooks]] - -* Notes - -Remember, you do not need to run 'doom sync' after modifying this file! - -* Config Basics - -This codeblock should be the first in this file! - -#+begin_src emacs-lisp -;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- -#+end_src - -#+begin_src emacs-lisp -(setq user-full-name "Jonathan Jenne" - user-mail-address "johnnie@posteo.de") - -(setq +user-org-path "~/Notes/Org" - +user-org-todo-file "Todo.org" - +user-org-notes-file "Notes.org" - +user-org-journal-file "Journal.org") - -(setq shell-file-name (executable-find "bash")) -#+end_src - -* Keybindings - -#+begin_src emacs-lisp -;; This will add a key combination oF F-1-2 breaking basic typing lol -;;(map! "" #'org-agenda-list) -#+end_src - -* Appearance - -#+begin_src emacs-lisp -(setq display-line-numbers-type t) -(setq doom-theme 'doom-one) -#+end_src - -* Org Mode -** Org Basics -*** TAB uses the language's major-mode binding in code blocks - -#+begin_src emacs-lisp -(setq org-src-tab-acts-natively t) -#+end_src -*** Load org-modules - -#+begin_src emacs-lisp -(add-to-list 'org-modules 'org-habit) -#+end_src -** Org Agenda - -To have a less overwhelming agenda, show only TODOs for today and tomorrow. DONE items are not interesting, so they are also hidden. - -#+begin_src emacs-lisp -(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 +user-org-path))) -#+end_src - -** Org Auto Tangle - -Only tangle org files where it has been explicitly enabled, like this config file - -#+begin_src emacs-lisp -(setq org-auto-tangle-default nil) -#+end_src - -** Org Capture - -*** Capture Files - -#+begin_src emacs-lisp -(after! org (setq +org-capture-notes-file (expand-file-name +user-org-notes-file +user-org-path) - +org-capture-todo-file (expand-file-name +user-org-todo-file +user-org-path) - +org-capture-journal-file (expand-file-name +user-org-journal-file +user-org-path))) -#+end_src - -*** Capture Templates - -#+begin_src emacs-lisp -(setq org-capture-templates - '(("t" "Personal todo" entry - (file+headline +org-capture-todo-file "Inbox") - "* TODO %?\n" :prepend t) - - ("n" "Personal notes" entry - (file+headline +org-capture-notes-file "Inbox") - "* %u %?\n" :prepend t) - - ("j" "Journal" entry - (file+olp+datetree +org-capture-journal-file) - "* %U %?\n" :prepend t))) -#+end_src - -** Org Directory - -#+begin_src emacs-lisp -(setq org-directory +user-org-path) -#+end_src - -** Org Hooks - -#+begin_src emacs-lisp -(add-hook 'org-mode-hook #'org-modern-mode) -(add-hook 'org-agenda-finalize-hook #'org-modern-agenda) -(add-hook 'org-mode-hook 'org-auto-tangle-mode) -#+end_src -