config
This commit is contained in:
parent
f1cc6bd018
commit
e8b0f9dcab
|
@ -15,6 +15,14 @@
|
||||||
;; Useful if default system shell is not bash
|
;; Useful if default system shell is not bash
|
||||||
(setq shell-file-name (executable-find "bash"))
|
(setq shell-file-name (executable-find "bash"))
|
||||||
|
|
||||||
|
;; Fonts
|
||||||
|
(setq doom-font
|
||||||
|
(font-spec :family "IBM Plex Mono" :size 18 :weight 'medium))
|
||||||
|
(setq doom-variable-pitch-font
|
||||||
|
(font-spec :family "IBM Plex Serif" :size 18 :weight 'medium))
|
||||||
|
(setq variable-pitch
|
||||||
|
(font-spec :family "IBM Plex Serif" :size 18 :weight 'medium))
|
||||||
|
|
||||||
;; Display Line numbers
|
;; Display Line numbers
|
||||||
(setq display-line-numbers-type t)
|
(setq display-line-numbers-type t)
|
||||||
|
|
||||||
|
@ -33,8 +41,17 @@
|
||||||
(setq +user-org-path "~/Notes/Org")
|
(setq +user-org-path "~/Notes/Org")
|
||||||
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
||||||
|
|
||||||
(after! org (setq org-directory +user-org-path
|
(after! org
|
||||||
org-src-tab-acts-natively t))
|
(setq org-directory +user-org-path
|
||||||
|
org-src-tab-acts-natively t)
|
||||||
|
org-todo-sets '(("TODO" "PROJ" "LOOP" "STRT" "WAIT" "HOLD" "IDEA" "DONE" "KILL")
|
||||||
|
("[ ]" "[-]" "[?]" "[X]")
|
||||||
|
("THIS" "EXAMPLE")))
|
||||||
|
|
||||||
|
(add-hook! 'org-mode-hook '(olivetti-mode (lambda () (display-line-numbers-mode -1))))
|
||||||
|
|
||||||
|
(add-hook! 'org-after-todo-state-change-hook '(org-habit-stats-update-properties))
|
||||||
|
|
||||||
|
|
||||||
(add-to-list 'org-modules 'org-habit)
|
(add-to-list 'org-modules 'org-habit)
|
||||||
|
|
||||||
|
@ -60,7 +77,7 @@
|
||||||
"</style>\n")))))
|
"</style>\n")))))
|
||||||
|
|
||||||
;; Org Export
|
;; Org Export
|
||||||
(add-hook 'org-export-before-processing-hook 'my-org-inline-css-hook)
|
(add-hook 'org-export-before-processing-functions 'my-org-inline-css-hook)
|
||||||
|
|
||||||
(after! org (setq +org-capture-notes-file (org-path "Notes.org")
|
(after! org (setq +org-capture-notes-file (org-path "Notes.org")
|
||||||
+org-capture-todo-file (org-path "Todo.org")
|
+org-capture-todo-file (org-path "Todo.org")
|
||||||
|
@ -101,14 +118,8 @@
|
||||||
(file+headline +org-capture-nepali-file "Nepali Words")
|
(file+headline +org-capture-nepali-file "Nepali Words")
|
||||||
"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}" :prepend t :immediate-finish t)
|
"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}" :prepend t :immediate-finish t)
|
||||||
|
|
||||||
("j" "Journal entries")
|
("j" "Daily Journal" entry
|
||||||
|
|
||||||
("jj" "Daily Journal" entry
|
|
||||||
(file+olp+datetree +org-capture-journal-file)
|
(file+olp+datetree +org-capture-journal-file)
|
||||||
"* %U %?\n" :prepend t)
|
|
||||||
|
|
||||||
("jt" "Travel Journal" entry
|
|
||||||
(file+headline +org-capture-journal-file "Travel")
|
|
||||||
"* %U %?\n" :prepend t))))
|
"* %U %?\n" :prepend t))))
|
||||||
|
|
||||||
(after! org (setq
|
(after! org (setq
|
||||||
|
@ -135,7 +146,16 @@
|
||||||
("DEPRECATED" font-lock-doc-face bold)
|
("DEPRECATED" font-lock-doc-face bold)
|
||||||
("NOTE" success bold)
|
("NOTE" success bold)
|
||||||
("BUG" error bold)
|
("BUG" error bold)
|
||||||
("XXX" font-lock-constant-face bold))))
|
("THIS" font-lock-constant-face bold))))
|
||||||
|
|
||||||
|
(use-package! nov
|
||||||
|
:mode ("\\.epub\\'" . nov-mode)
|
||||||
|
:config
|
||||||
|
(setq nov-text-width 60))
|
||||||
|
|
||||||
|
(add-hook! 'nov-mode-hook '(olivetti-mode))
|
||||||
|
|
||||||
|
(after! olivetti (setq olivetti-body-width 60))
|
||||||
|
|
||||||
(use-package! org-auto-tangle
|
(use-package! org-auto-tangle
|
||||||
:defer t
|
:defer t
|
||||||
|
@ -153,3 +173,13 @@
|
||||||
(add-hook 'doom-after-init-hook #'display-time-mode)
|
(add-hook 'doom-after-init-hook #'display-time-mode)
|
||||||
|
|
||||||
(after! evil-snipe (setq evil-snipe-scope 'whole-visible))
|
(after! evil-snipe (setq evil-snipe-scope 'whole-visible))
|
||||||
|
|
||||||
|
(after! org-noter
|
||||||
|
(setq org-noter-notes-search-path '("~/Notes/Org"))
|
||||||
|
(setq org-noter-always-create-frame nil)
|
||||||
|
(setq org-noter-doc-split-fraction '(0.75 . 0.75))
|
||||||
|
(setq org-noter-default-notes-file-names '()))
|
||||||
|
|
||||||
|
(after! org-roam
|
||||||
|
(setq org-roam-directory "~/Notes/Org/Roam")
|
||||||
|
(setq org-roam-dailies-directory "Daily"))
|
||||||
|
|
|
@ -2,13 +2,12 @@
|
||||||
#+AUTHOR: Jonathan Jenne / Inhji
|
#+AUTHOR: Jonathan Jenne / Inhji
|
||||||
#+PROPERTY: header-args :tangle config.el
|
#+PROPERTY: header-args :tangle config.el
|
||||||
#+auto_tangle: t
|
#+auto_tangle: t
|
||||||
|
#+STARTUP: overview
|
||||||
* Header
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Table of Contents :toc:
|
* Table of Contents :toc:
|
||||||
|
:PROPERTIES:
|
||||||
|
:VISIBILITY: all
|
||||||
|
:END:
|
||||||
- [[#header][Header]]
|
- [[#header][Header]]
|
||||||
- [[#keybindings][Keybindings]]
|
- [[#keybindings][Keybindings]]
|
||||||
- [[#base-config][Base Config]]
|
- [[#base-config][Base Config]]
|
||||||
|
@ -20,10 +19,19 @@
|
||||||
- [[#org-agenda][Org Agenda]]
|
- [[#org-agenda][Org Agenda]]
|
||||||
- [[#packages][Packages]]
|
- [[#packages][Packages]]
|
||||||
- [[#hl-todo][hl-todo]]
|
- [[#hl-todo][hl-todo]]
|
||||||
|
- [[#novel][nov.el]]
|
||||||
|
- [[#olivetti][olivetti]]
|
||||||
- [[#org-auto-tangle][org-auto-tangle]]
|
- [[#org-auto-tangle][org-auto-tangle]]
|
||||||
- [[#org-drill][org-drill]]
|
- [[#org-drill][org-drill]]
|
||||||
- [[#doom-modeline][doom-modeline]]
|
- [[#doom-modeline][doom-modeline]]
|
||||||
- [[#evil-snipe][evil-snipe]]
|
- [[#evil-snipe][evil-snipe]]
|
||||||
|
- [[#org-noter][org-noter]]
|
||||||
|
- [[#org-roam][org-roam]]
|
||||||
|
|
||||||
|
* Header
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Keybindings
|
* Keybindings
|
||||||
|
|
||||||
|
@ -59,6 +67,14 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
;; Useful if default system shell is not bash
|
;; Useful if default system shell is not bash
|
||||||
(setq shell-file-name (executable-find "bash"))
|
(setq shell-file-name (executable-find "bash"))
|
||||||
|
|
||||||
|
;; Fonts
|
||||||
|
(setq doom-font
|
||||||
|
(font-spec :family "IBM Plex Mono" :size 18 :weight 'medium))
|
||||||
|
(setq doom-variable-pitch-font
|
||||||
|
(font-spec :family "IBM Plex Serif" :size 18 :weight 'medium))
|
||||||
|
(setq variable-pitch
|
||||||
|
(font-spec :family "IBM Plex Serif" :size 18 :weight 'medium))
|
||||||
|
|
||||||
;; Display Line numbers
|
;; Display Line numbers
|
||||||
(setq display-line-numbers-type t)
|
(setq display-line-numbers-type t)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
@ -85,8 +101,17 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
(setq +user-org-path "~/Notes/Org")
|
(setq +user-org-path "~/Notes/Org")
|
||||||
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
(defun org-path (filename) (expand-file-name filename +user-org-path))
|
||||||
|
|
||||||
(after! org (setq org-directory +user-org-path
|
(after! org
|
||||||
org-src-tab-acts-natively t))
|
(setq org-directory +user-org-path
|
||||||
|
org-src-tab-acts-natively t)
|
||||||
|
org-todo-sets '(("TODO" "PROJ" "LOOP" "STRT" "WAIT" "HOLD" "IDEA" "DONE" "KILL")
|
||||||
|
("[ ]" "[-]" "[?]" "[X]")
|
||||||
|
("THIS" "EXAMPLE")))
|
||||||
|
|
||||||
|
(add-hook! 'org-mode-hook '(olivetti-mode (lambda () (display-line-numbers-mode -1))))
|
||||||
|
|
||||||
|
(add-hook! 'org-after-todo-state-change-hook '(org-habit-stats-update-properties))
|
||||||
|
|
||||||
|
|
||||||
(add-to-list 'org-modules 'org-habit)
|
(add-to-list 'org-modules 'org-habit)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
@ -118,11 +143,11 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
"</style>\n")))))
|
"</style>\n")))))
|
||||||
|
|
||||||
;; Org Export
|
;; Org Export
|
||||||
(add-hook 'org-export-before-processing-hook 'my-org-inline-css-hook)
|
(add-hook 'org-export-before-processing-functions 'my-org-inline-css-hook)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Org Capture :toc:
|
** Org Capture
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! org (setq +org-capture-notes-file (org-path "Notes.org")
|
(after! org (setq +org-capture-notes-file (org-path "Notes.org")
|
||||||
+org-capture-todo-file (org-path "Todo.org")
|
+org-capture-todo-file (org-path "Todo.org")
|
||||||
|
@ -163,15 +188,10 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
(file+headline +org-capture-nepali-file "Nepali Words")
|
(file+headline +org-capture-nepali-file "Nepali Words")
|
||||||
"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}" :prepend t :immediate-finish t)
|
"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}" :prepend t :immediate-finish t)
|
||||||
|
|
||||||
("j" "Journal entries")
|
("j" "Daily Journal" entry
|
||||||
|
|
||||||
("jj" "Daily Journal" entry
|
|
||||||
(file+olp+datetree +org-capture-journal-file)
|
(file+olp+datetree +org-capture-journal-file)
|
||||||
"* %U %?\n" :prepend t)
|
|
||||||
|
|
||||||
("jt" "Travel Journal" entry
|
|
||||||
(file+headline +org-capture-journal-file "Travel")
|
|
||||||
"* %U %?\n" :prepend t))))
|
"* %U %?\n" :prepend t))))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Agenda
|
** Org Agenda
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -193,6 +213,7 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
|
|
||||||
* Packages
|
* Packages
|
||||||
** hl-todo
|
** hl-todo
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'org-mode-hook #'hl-todo-mode)
|
(add-hook 'org-mode-hook #'hl-todo-mode)
|
||||||
|
|
||||||
|
@ -203,7 +224,25 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
("DEPRECATED" font-lock-doc-face bold)
|
("DEPRECATED" font-lock-doc-face bold)
|
||||||
("NOTE" success bold)
|
("NOTE" success bold)
|
||||||
("BUG" error bold)
|
("BUG" error bold)
|
||||||
("XXX" font-lock-constant-face bold))))
|
("THIS" font-lock-constant-face bold))))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** nov.el
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
|
(use-package! nov
|
||||||
|
:mode ("\\.epub\\'" . nov-mode)
|
||||||
|
:config
|
||||||
|
(setq nov-text-width 60))
|
||||||
|
|
||||||
|
(add-hook! 'nov-mode-hook '(olivetti-mode))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
** olivetti
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(after! olivetti (setq olivetti-body-width 60))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** org-auto-tangle
|
** org-auto-tangle
|
||||||
|
@ -231,3 +270,19 @@ These keybindings extend the default doom bindings, either because the defaults
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! evil-snipe (setq evil-snipe-scope 'whole-visible))
|
(after! evil-snipe (setq evil-snipe-scope 'whole-visible))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** org-noter
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(after! org-noter
|
||||||
|
(setq org-noter-notes-search-path '("~/Notes/Org"))
|
||||||
|
(setq org-noter-always-create-frame nil)
|
||||||
|
(setq org-noter-doc-split-fraction '(0.75 . 0.75))
|
||||||
|
(setq org-noter-default-notes-file-names '()))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
** org-roam
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(after! org-roam
|
||||||
|
(setq org-roam-directory "~/Notes/Org/Roam")
|
||||||
|
(setq org-roam-dailies-directory "Daily"))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
;;nix ; I hereby declare "nix geht mehr!"
|
;;nix ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
org ; organize your plain life in plain text
|
(org +roam2) ; organize your plain life in plain text
|
||||||
;; php ; perl's insecure younger brother
|
;; php ; perl's insecure younger brother
|
||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
|
|
||||||
:email
|
:email
|
||||||
;;(mu4e +org +gmail)
|
;;(mu4e +org +gmail)
|
||||||
;;notmuch
|
notmuch
|
||||||
;;(wanderlust +gmail)
|
;;(wanderlust +gmail)
|
||||||
|
|
||||||
:app
|
:app
|
||||||
|
|
|
@ -13,8 +13,10 @@
|
||||||
(package! org-auto-tangle)
|
(package! org-auto-tangle)
|
||||||
(package! org-habit-stats)
|
(package! org-habit-stats)
|
||||||
(package! org-drill)
|
(package! org-drill)
|
||||||
(package! catppuccin-theme)
|
(package! org-noter)
|
||||||
(package! heaven-and-hell)
|
(package! heaven-and-hell)
|
||||||
|
(package! nov)
|
||||||
|
(package! olivetti)
|
||||||
|
|
||||||
;; 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