From 0121c8c56f6c39837aa29d16b8bc35536bf20445 Mon Sep 17 00:00:00 2001 From: Inhji Date: Wed, 7 Feb 2024 17:08:51 +0100 Subject: [PATCH] doom: add `C-M-+` binding for increasing font size --- config/dot_config/doom/config.el | 59 +++++++++++++++++++------------- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/config/dot_config/doom/config.el b/config/dot_config/doom/config.el index 60b9c53..ef8499d 100644 --- a/config/dot_config/doom/config.el +++ b/config/dot_config/doom/config.el @@ -1,27 +1,57 @@ ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- +;; Basic User Settings (setq user-full-name "Jonathan Jenne" user-mail-address "johnnie@posteo.de") +;; Paths and Filenames (setq +user-org-path "~/Notes/Org" +user-org-todo-file "Todo.org" +user-org-notes-file "Notes.org" +user-org-journal-file "Journal.org") +;; Default Shell +;; Useful if default system shell is not bash (setq shell-file-name (executable-find "bash")) -;; This will add a key combination oF F-1-2 breaking basic typing lol -;;(map! "" #'org-agenda-list) +;; Custom keybindings +(map! :n "" #'org-agenda-list) +(map! "C-M-+" #'doom/increase-font-size) +;; Display Line numbers (setq display-line-numbers-type t) + +;; Set Emacs theme (setq doom-theme 'doom-gruvbox) +;; Dashboard (setq dashboard-startup-banner nil) -(setq org-src-tab-acts-natively t) - +;; Org-Mode (add-to-list 'org-modules 'org-habit) +(after! org (setq org-directory +user-org-path + org-src-tab-acts-natively t)) + +;; Org Capture +(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))) + +(after! org (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)))) + +;; Org-Agenda (after! org (setq org-agenda-show-all-dates nil org-agenda-span 2 @@ -37,27 +67,10 @@ ;; Consider all org files part of the org-agenda org-agenda-files (list +user-org-path))) +;; Org-Auto-Tangle (setq org-auto-tangle-default nil) -(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))) - -(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))) - -(setq org-directory +user-org-path) - +;; Hooks (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)