mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 19:10:24 +10:00
Minor edits to Doom config.
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
- [[#org-export][Org-export]]
|
||||
- [[#org-journal][Org-journal]]
|
||||
- [[#org-publish][Org-publish]]
|
||||
- [[#org-roam][Org-roam]]
|
||||
- [[#org-auto-tangle][Org-auto-tangle]]
|
||||
- [[#password-store][PASSWORD STORE]]
|
||||
- [[#perspective][PERSPECTIVE]]
|
||||
@@ -661,9 +660,12 @@ I set comment-line to 'SPC TAB TAB' which is a rather comfortable keybinding for
|
||||
#+begin_src emacs-lisp
|
||||
(custom-set-faces
|
||||
'(markdown-header-face ((t (:inherit font-lock-function-name-face :weight bold :family "variable-pitch"))))
|
||||
'(markdown-header-face-1 ((t (:inherit markdown-header-face :height 1.8))))
|
||||
'(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.4))))
|
||||
'(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.2)))))
|
||||
'(markdown-header-face-1 ((t (:inherit markdown-header-face :height 1.7))))
|
||||
'(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.6))))
|
||||
'(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.5))))
|
||||
'(markdown-header-face-4 ((t (:inherit markdown-header-face :height 1.4))))
|
||||
'(markdown-header-face-5 ((t (:inherit markdown-header-face :height 1.3))))
|
||||
'(markdown-header-face-6 ((t (:inherit markdown-header-face :height 1.2)))))
|
||||
|
||||
#+end_src
|
||||
|
||||
@@ -783,10 +785,10 @@ I wrapped most of this block in (after! org). Without this, my settings might b
|
||||
#+END_SRC
|
||||
|
||||
** Org fonts
|
||||
I have created an interactive function for each color scheme (M-x org-colors-*). These functions will set appropriate colors and font attributes for org-level fonts and the org-table font.
|
||||
I have created an interactive function for each color scheme (M-x dt/org-colors-*). These functions will set appropriate colors and font attributes for org-level fonts and the org-table font.
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(defun org-colors-doom-one ()
|
||||
(defun dt/org-colors-doom-one ()
|
||||
"Enable Doom One colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -802,7 +804,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-dracula ()
|
||||
(defun dt/org-colors-dracula ()
|
||||
"Enable Dracula colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -818,7 +820,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-gruvbox-dark ()
|
||||
(defun dt/org-colors-gruvbox-dark ()
|
||||
"Enable Gruvbox Dark colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -834,7 +836,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-monokai-pro ()
|
||||
(defun dt/org-colors-monokai-pro ()
|
||||
"Enable Monokai Pro colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -850,7 +852,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-nord ()
|
||||
(defun dt/org-colors-nord ()
|
||||
"Enable Nord colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -866,7 +868,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-oceanic-next ()
|
||||
(defun dt/org-colors-oceanic-next ()
|
||||
"Enable Oceanic Next colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -882,7 +884,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-palenight ()
|
||||
(defun dt/org-colors-palenight ()
|
||||
"Enable Palenight colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -898,7 +900,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-solarized-dark ()
|
||||
(defun dt/org-colors-solarized-dark ()
|
||||
"Enable Solarized Dark colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -914,7 +916,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-solarized-light ()
|
||||
(defun dt/org-colors-solarized-light ()
|
||||
"Enable Solarized Light colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -930,7 +932,7 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
(defun org-colors-tomorrow-night ()
|
||||
(defun dt/org-colors-tomorrow-night ()
|
||||
"Enable Tomorrow Night colors for Org headers."
|
||||
(interactive)
|
||||
(dolist
|
||||
@@ -946,15 +948,15 @@ I have created an interactive function for each color scheme (M-x org-colors-*).
|
||||
(set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face)))
|
||||
(set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf"))
|
||||
|
||||
;; Load our desired org-colors-* theme on startup
|
||||
(org-colors-doom-one)
|
||||
;; Load our desired dt/org-colors-* theme on startup
|
||||
(dt/org-colors-doom-one)
|
||||
|
||||
#+end_src
|
||||
|
||||
** Org-export
|
||||
We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting to gemtext (for the gemini protocol).
|
||||
|
||||
=NOTE:= I also enable ox-publish for converting an Org site into an HTML site, but that is done in init.el (org +publish).
|
||||
=NOTE=: I also enable ox-publish for converting an Org site into an HTML site, but that is done in init.el (org +publish).
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package ox-man)
|
||||
@@ -1082,23 +1084,8 @@ We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting
|
||||
))
|
||||
#+end_src
|
||||
|
||||
** Org-roam
|
||||
| COMMAND | DESCRIPTION | KEYBINDING |
|
||||
|---------------------------------+---------------------------------+-------------|
|
||||
| org-roam-find-file | org roam find file | SPC n r f |
|
||||
| org-roam-insert | org roam insert | SPC n r i |
|
||||
| org-roam-dailies-find-date | org roam dailies find date | SPC n r d d |
|
||||
| org-roam-dailies-find-today | org roam dailies find today | SPC n r d t |
|
||||
| org-roam-dailies-find-tomorrow | org roam dailies find tomorrow | SPC n r d m |
|
||||
| org-roam-dailies-find-yesterday | org roam dailies find yesterday | SPC n r d y |
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! org-roam
|
||||
(setq org-roam-directory "~/nc/Roam"))
|
||||
|
||||
#+end_src
|
||||
|
||||
** Org-auto-tangle
|
||||
=org-auto-tangle= allows you to add the option =#+auto_tangle: t= in your Org file so that it automatically tangles when you save the document.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! org-auto-tangle
|
||||
@@ -1106,6 +1093,7 @@ We need ox-man for "Org eXporting" to manpage format and ox-gemini for exporting
|
||||
:hook (org-mode . org-auto-tangle-mode)
|
||||
:config
|
||||
(setq org-auto-tangle-default t))
|
||||
|
||||
#+end_src
|
||||
|
||||
* PASSWORD STORE
|
||||
|
||||
Reference in New Issue
Block a user