fix config lol

This commit is contained in:
Inhji 2024-02-14 10:29:20 +05:45
parent fae532f142
commit eb29eec564
3 changed files with 74 additions and 171 deletions

View File

@ -1,64 +1,68 @@
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(map! :n "<f12>" #'org-agenda-list)
(map! "C-M-+" #'doom/increase-font-size)
(map! "C-#" #'comment-line)
;; Basic User Settings
(setq user-full-name "Jonathan Jenne"
user-mail-address "johnnie@posteo.de")
;; Load Path
(add-to-list 'load-path "~/.config/doom/lisp")
;; 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)
;;(setq doom-theme 'gruvbox)
;; Hooks
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
(setq hl-todo-keyword-faces '(("TODO" warning bold)
("FIXME" error bold)
("EXAMPLE" font-lock-keyword-face bold)
("HACK" font-lock-constant-face bold)
("DEPRECATED" font-lock-doc-face bold)
("NOTE" success bold)
("BUG" error bold)
("XXX" font-lock-constant-face bold)))
(setq +user-org-path "~/Notes/Org")
(defun org-path (filename) (expand-file-name filename +user-org-path))
;; 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)
'(("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)
("n" "Personal notes" entry
(file+headline +org-capture-notes-file "Inbox")
"* %u %?\n" :prepend t)
("j" "Journal entries")
("j" "Journal entries")
("jt" "Travelling Journal" entry
(file+headline +org-capture-travel-journal-file "Inbox")
"* %u %?\n" :prepend t)
("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))))
("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
@ -74,18 +78,11 @@
;; 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))
(evil-define-key 'normal dired-mode-map
(kbd "DEL") 'dired-up-directory)

View File

@ -1,71 +1,74 @@
#+TITLE: Emacs Config
#+AUTHOR: Jonathan Jenne / Inhji
#+PROPERTY: header-args :tangle config.org.el
#+PROPERTY: header-args :tangle config.el
#+auto_tangle: t
* Emacs Config
#+begin_src emacs-lisp
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(map! :n "<f12>" #'org-agenda-list)
(map! "C-M-+" #'doom/increase-font-size)
(map! "C-#" #'comment-line)
;; 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)
;;(setq doom-theme 'gruvbox)
;; Dashboard
(setq dashboard-startup-banner nil)
;; Hooks
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
(setq hl-todo-keyword-faces '(("TODO" warning bold)
("FIXME" error bold)
("EXAMPLE" font-lock-keyword-face bold)
("HACK" font-lock-constant-face bold)
("DEPRECATED" font-lock-doc-face bold)
("NOTE" success bold)
("BUG" error bold)
("XXX" font-lock-constant-face bold)))
(setq +user-org-path "~/Notes/Org")
(defun org-path (filename) (expand-file-name filename +user-org-path))
;; 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)
'(("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)
("n" "Personal notes" entry
(file+headline +org-capture-notes-file "Inbox")
"* %u %?\n" :prepend t)
("j" "Journal entries")
("j" "Journal entries")
("jt" "Travelling Journal" entry
(file+headline +org-capture-travel-journal-file "Inbox")
"* %u %?\n" :prepend t)
("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))))
("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
@ -81,19 +84,12 @@
;; 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))
(evil-define-key 'normal dired-mode-map
(kbd "DEL") 'dired-up-directory)
#+end_src

View File

@ -1,90 +0,0 @@
;;; $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))