Compare commits
2 Commits
2c17854f8d
...
13ad435643
Author | SHA1 | Date |
---|---|---|
Inhji | 13ad435643 | |
Inhji | 3155adb160 |
|
@ -0,0 +1,99 @@
|
||||||
|
#+TITLE: Emacs Config
|
||||||
|
#+AUTHOR: Jonathan Jenne / Inhji
|
||||||
|
#+PROPERTY: header-args :tangle config.org.el
|
||||||
|
#+auto_tangle: t
|
||||||
|
|
||||||
|
* Emacs Config
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; Basic User Settings
|
||||||
|
(setq user-full-name "Jonathan Jenne"
|
||||||
|
user-mail-address "johnnie@posteo.de")
|
||||||
|
|
||||||
|
;; Org Path
|
||||||
|
(setq +user-org-path "~/Notes/Org")
|
||||||
|
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
||||||
|
|
||||||
|
;; Default Shell
|
||||||
|
;; Useful if default system shell is not bash
|
||||||
|
(setq shell-file-name (executable-find "bash"))
|
||||||
|
|
||||||
|
;; Custom keybindings
|
||||||
|
(map! :n "<f12>" #'org-agenda-list)
|
||||||
|
(map! "C-M-+" #'doom/increase-font-size)
|
||||||
|
(map! "C-#" #'comment-line)
|
||||||
|
|
||||||
|
;; Display Line numbers
|
||||||
|
(setq display-line-numbers-type t)
|
||||||
|
|
||||||
|
;; Set Emacs theme
|
||||||
|
(setq doom-theme 'catppuccin)
|
||||||
|
|
||||||
|
;; Dashboard
|
||||||
|
(setq dashboard-startup-banner nil)
|
||||||
|
|
||||||
|
;; 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 (org-path "Notes.org")
|
||||||
|
+org-capture-todo-file (org-path "Todo.org")
|
||||||
|
+org-capture-journal-file (org-path "Journal.org")
|
||||||
|
+org-capture-travel-journal-file (org-path "Travel.org")))
|
||||||
|
|
||||||
|
(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 entries")
|
||||||
|
|
||||||
|
("jt" "Travelling Journal" entry
|
||||||
|
(file+headline +org-capture-travel-journal-file "Inbox")
|
||||||
|
"* %u %?\n" :prepend t)
|
||||||
|
|
||||||
|
("jj" "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 4
|
||||||
|
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)))
|
||||||
|
|
||||||
|
;; Org-Auto-Tangle
|
||||||
|
(setq org-auto-tangle-default nil)
|
||||||
|
|
||||||
|
;; Dired
|
||||||
|
(evil-define-key 'normal dired-mode-map
|
||||||
|
(kbd "DEL") 'dired-up-directory)
|
||||||
|
|
||||||
|
;; Hooks
|
||||||
|
(add-hook 'org-mode-hook #'org-modern-mode)
|
||||||
|
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
|
||||||
|
|
||||||
|
;; Package Configuration
|
||||||
|
(use-package! org-auto-tangle
|
||||||
|
:defer t
|
||||||
|
:hook (org-mode . org-auto-tangle-mode))
|
||||||
|
#+end_src
|
|
@ -21,7 +21,7 @@
|
||||||
(setq display-line-numbers-type t)
|
(setq display-line-numbers-type t)
|
||||||
|
|
||||||
;; Set Emacs theme
|
;; Set Emacs theme
|
||||||
(setq doom-theme 'doom-gruvbox)
|
(setq doom-theme 'catppuccin)
|
||||||
|
|
||||||
;; Dashboard
|
;; Dashboard
|
||||||
(setq dashboard-startup-banner nil)
|
(setq dashboard-startup-banner nil)
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
;; Org-Agenda
|
;; Org-Agenda
|
||||||
(after! org (setq
|
(after! org (setq
|
||||||
org-agenda-show-all-dates nil
|
org-agenda-show-all-dates nil
|
||||||
org-agenda-span 2
|
org-agenda-span 4
|
||||||
org-agenda-start-day "+0d"
|
org-agenda-start-day "+0d"
|
||||||
org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)
|
org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)
|
||||||
org-agenda-time-grid
|
org-agenda-time-grid
|
||||||
|
@ -76,6 +76,10 @@
|
||||||
;; Org-Auto-Tangle
|
;; Org-Auto-Tangle
|
||||||
(setq org-auto-tangle-default nil)
|
(setq org-auto-tangle-default nil)
|
||||||
|
|
||||||
|
;; Dired
|
||||||
|
(evil-define-key 'normal dired-mode-map
|
||||||
|
(kbd "DEL") 'dired-up-directory)
|
||||||
|
|
||||||
;; Hooks
|
;; Hooks
|
||||||
(add-hook 'org-mode-hook #'org-modern-mode)
|
(add-hook 'org-mode-hook #'org-modern-mode)
|
||||||
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
|
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
|
||||||
|
|
|
@ -0,0 +1,90 @@
|
||||||
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; Basic User Settings
|
||||||
|
(setq user-full-name "Jonathan Jenne"
|
||||||
|
user-mail-address "johnnie@posteo.de")
|
||||||
|
|
||||||
|
;; Org Path
|
||||||
|
(setq +user-org-path "~/Notes/Org")
|
||||||
|
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
||||||
|
|
||||||
|
;; Default Shell
|
||||||
|
;; Useful if default system shell is not bash
|
||||||
|
(setq shell-file-name (executable-find "bash"))
|
||||||
|
|
||||||
|
;; Custom keybindings
|
||||||
|
(map! :n "<f12>" #'org-agenda-list)
|
||||||
|
(map! "C-M-+" #'doom/increase-font-size)
|
||||||
|
(map! "C-#" #'comment-line)
|
||||||
|
|
||||||
|
;; Display Line numbers
|
||||||
|
(setq display-line-numbers-type t)
|
||||||
|
|
||||||
|
;; Set Emacs theme
|
||||||
|
(setq doom-theme 'catppuccin)
|
||||||
|
|
||||||
|
;; Dashboard
|
||||||
|
(setq dashboard-startup-banner nil)
|
||||||
|
|
||||||
|
;; 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 (org-path "Notes.org")
|
||||||
|
+org-capture-todo-file (org-path "Todo.org")
|
||||||
|
+org-capture-journal-file (org-path "Journal.org")
|
||||||
|
+org-capture-travel-journal-file (org-path "Travel.org")))
|
||||||
|
|
||||||
|
(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 entries")
|
||||||
|
|
||||||
|
("jt" "Travelling Journal" entry
|
||||||
|
(file+headline +org-capture-travel-journal-file "Inbox")
|
||||||
|
"* %u %?\n" :prepend t)
|
||||||
|
|
||||||
|
("jj" "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 4
|
||||||
|
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)))
|
||||||
|
|
||||||
|
;; Org-Auto-Tangle
|
||||||
|
(setq org-auto-tangle-default nil)
|
||||||
|
|
||||||
|
;; Dired
|
||||||
|
(evil-define-key 'normal dired-mode-map
|
||||||
|
(kbd "DEL") 'dired-up-directory)
|
||||||
|
|
||||||
|
;; Hooks
|
||||||
|
(add-hook 'org-mode-hook #'org-modern-mode)
|
||||||
|
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
|
||||||
|
|
||||||
|
;; Package Configuration
|
||||||
|
(use-package! org-auto-tangle
|
||||||
|
:defer t
|
||||||
|
:hook (org-mode . org-auto-tangle-mode))
|
|
@ -77,7 +77,7 @@
|
||||||
;;eshell ; the elisp shell that works everywhere
|
;;eshell ; the elisp shell that works everywhere
|
||||||
;;shell ; simple shell REPL for Emacs
|
;;shell ; simple shell REPL for Emacs
|
||||||
;;term ; basic terminal emulator for Emacs
|
;;term ; basic terminal emulator for Emacs
|
||||||
;;vterm ; the best terminal emulation in Emacs
|
vterm ; the best terminal emulation in Emacs
|
||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
syntax ; tasing you for every semicolon you forget
|
syntax ; tasing you for every semicolon you forget
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
(package! org-modern)
|
(package! org-modern)
|
||||||
(package! org-auto-tangle)
|
(package! org-auto-tangle)
|
||||||
(package! org-habit-stats)
|
(package! org-habit-stats)
|
||||||
(package! dashboard :disable t)
|
(package! catppuccin-theme)
|
||||||
(package! org-journal :disable t)
|
|
||||||
|
|
||||||
;; To install a package directly from a remote git repo, you must specify a
|
;; To install a package directly from a remote git repo, you must specify a
|
||||||
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||||
|
|
Loading…
Reference in New Issue