doom: add `C-M-+` binding for increasing font size

This commit is contained in:
Inhji 2024-02-07 17:08:51 +01:00
parent 2ce52ef229
commit 0121c8c56f
1 changed files with 36 additions and 23 deletions

View File

@ -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! "<f12>" #'org-agenda-list)
;; Custom keybindings
(map! :n "<f12>" #'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)