add org-drill binding, switch to gruvbox theme

This commit is contained in:
Inhji 2024-02-27 22:33:08 +05:45
parent 18a255d5f4
commit 4bb900ed28
3 changed files with 170 additions and 177 deletions

View File

@ -13,6 +13,7 @@
;; General Keybindings
(map! :n "<f12>" #'org-agenda-list)
(map! :n "<f7>" #'org-drill)
(map! "C-M-+" #'doom/increase-font-size)
(map! "C-#" #'comment-line)
(evil-define-key 'normal dired-mode-map
@ -34,13 +35,12 @@
:config
(setq heaven-and-hell-theme-type 'dark) ;; Omit to use light by default
(setq heaven-and-hell-themes
'((light . leuven)
(dark . doom-monokai-octagon))) ;; Themes can be the list: (dark . (tsdh-dark wombat))
'((light . doom-gruvbox-light)
(dark . doom-gruvbox))) ;; Themes can be the list: (dark . (tsdh-dark wombat))
;; Optionall, load themes without asking for confirmation.
(setq heaven-and-hell-load-theme-no-confirm t)
:hook (after-init . heaven-and-hell-init-hook)
:bind (("C-c <f6>" . heaven-and-hell-load-default-theme)
("<f6>" . heaven-and-hell-toggle-theme)))
:bind (("<f6>" . heaven-and-hell-toggle-theme)))
(setq +user-org-path "~/Notes/Org")
(defun org-path (filename) (expand-file-name filename +user-org-path))
@ -50,8 +50,7 @@
(add-to-list 'org-modules 'org-habit)
(after! org (
;; TOC Links will lead to errors when attempting
(after! org (;; TOC Links will lead to errors when attempting
;; to export to HTML
setq org-export-exclude-tags '("toc")))
@ -78,20 +77,18 @@
(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")))
+org-capture-nepali-file (org-path "Nepali.org")))
(after! org (setq org-capture-templates
'(("t" "Personal todo" entry
'(("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" "Nepali")
("w", "Nepali" entry
(file+headline +org-capture-notes-file "Nepali/Vocabulary")
"* " :prepend t)
("nw" "Nepali Word" entry
(file+headline +org-capture-nepali-file "Nepali Words")
"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}" :prepend t :immediate-finish t)
("j" "Journal entries")

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2024-02-26 Mo 23:29 -->
<!-- 2024-02-27 Di 13:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Emacs Config</title>
@ -199,7 +199,6 @@
body {
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif !important;
}
/*]]>*/-->
</style>
@ -211,34 +210,34 @@ body {
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#org628208d">1. Keybindings</a></li>
<li><a href="#org76bae20">2. Base Config</a>
<li><a href="#org3e4acbe">1. Keybindings</a></li>
<li><a href="#org5cb07a1">2. Base Config</a>
<ul>
<li><a href="#org242c54d">2.1. Hooks</a></li>
<li><a href="#org7b1406d">2.1. Hooks</a></li>
</ul>
</li>
<li><a href="#org8b41262">3. Themes</a></li>
<li><a href="#orge1f23de">4. Org Mode</a>
<li><a href="#orgf2aed3b">3. Themes</a></li>
<li><a href="#orgf1767f4">4. Org Mode</a>
<ul>
<li><a href="#org3a5d36e">4.1. General Settings</a></li>
<li><a href="#org9f30c51">4.2. Org Export</a></li>
<li><a href="#org7d6ea1c">4.3. Org Agenda</a></li>
<li><a href="#org7edeaf3">4.1. General Settings</a></li>
<li><a href="#org86c81c0">4.2. Org Export</a></li>
<li><a href="#orgeacff10">4.3. Org Agenda</a></li>
</ul>
</li>
<li><a href="#org2f48627">5. Packages</a>
<li><a href="#orge7a3973">5. Packages</a>
<ul>
<li><a href="#org2b1a9f6">5.1. hl-todo</a></li>
<li><a href="#orga24ab5a">5.2. org-auto-tangle</a></li>
<li><a href="#org0907011">5.3. org-drill</a></li>
<li><a href="#org54e4408">5.4. doom-modeline</a></li>
<li><a href="#org7639f0e">5.5. evil-snipe</a></li>
<li><a href="#org10ca8a9">5.1. hl-todo</a></li>
<li><a href="#orgb292dd1">5.2. org-auto-tangle</a></li>
<li><a href="#org931b602">5.3. org-drill</a></li>
<li><a href="#org173df8d">5.4. doom-modeline</a></li>
<li><a href="#orgf3784d6">5.5. evil-snipe</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org628208d" class="outline-2">
<h2 id="org628208d"><span class="section-number-2">1.</span> Keybindings</h2>
<div id="outline-container-org3e4acbe" class="outline-2">
<h2 id="org3e4acbe"><span class="section-number-2">1.</span> Keybindings</h2>
<div class="outline-text-2" id="text-1">
<p>
These keybindings extend the default doom bindings, either because the defaults were confusing to me or because the binding did not yet exist.
@ -280,6 +279,12 @@ These keybindings extend the default doom bindings, either because the defaults
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">DEL</td>
<td class="org-left">Up Directory</td>
<td class="org-left">Dired</td>
</tr>
<tr>
<td class="org-left">F6</td>
<td class="org-left">Toggle Light/Dark Theme</td>
@ -287,220 +292,213 @@ These keybindings extend the default doom bindings, either because the defaults
</tr>
<tr>
<td class="org-left">Ctrl-c F6</td>
<td class="org-left">Load Default Theme</td>
<td class="org-left">F7</td>
<td class="org-left">Start Org-Drill</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">DEL</td>
<td class="org-left">Up Directory</td>
<td class="org-left">Dired</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-org76bae20" class="outline-2">
<h2 id="org76bae20"><span class="section-number-2">2.</span> Base Config</h2>
<div id="outline-container-org5cb07a1" class="outline-2">
<h2 id="org5cb07a1"><span class="section-number-2">2.</span> Base Config</h2>
<div class="outline-text-2" id="text-2">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #B4A5C7; font-style: italic;">;;; </span><span style="color: #B4A5C7; font-style: italic;">$DOOMDIR/config.el -*- lexical-binding: t; -*-</span>
<pre class="src src-emacs-lisp"><span style="color: #928374;">;;; </span><span style="color: #928374;">$DOOMDIR/config.el -*- lexical-binding: t; -*-</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Basic User Settings</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">user-full-name</span> <span style="color: #5f8700;">"Jonathan Jenne"</span>
<span style="color: #513969;">user-mail-address</span> <span style="color: #5f8700;">"johnnie@posteo.de"</span><span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Basic User Settings</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">user-full-name</span> <span style="color: #b8bb26;">"Jonathan Jenne"</span>
<span style="color: #83a598;">user-mail-address</span> <span style="color: #b8bb26;">"johnnie@posteo.de"</span><span style="color: #fe8019;">)</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Default Shell</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Useful if default system shell is not bash</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">shell-file-name</span> <span style="color: #5f8700;">(</span><span style="color: #007daf;">executable-find</span> <span style="color: #5f8700;">"bash"</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Default Shell</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Useful if default system shell is not bash</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">shell-file-name</span> <span style="color: #cc241d;">(</span><span style="color: #b8bb26;">executable-find</span> <span style="color: #b8bb26;">"bash"</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Display Line numbers</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">display-line-numbers-type</span> t<span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Display Line numbers</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">display-line-numbers-type</span> t<span style="color: #fe8019;">)</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">General Keybindings</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">map!</span> <span style="color: #007daf;">:n</span> <span style="color: #5f8700;">"&lt;f12&gt;"</span> <span style="color: #f4649b;">#'</span><span style="color: #f4649b;">org-agenda-list</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">map!</span> <span style="color: #5f8700;">"C-M-+"</span> <span style="color: #f4649b;">#'</span><span style="color: #f4649b;">doom/increase-font-size</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">map!</span> <span style="color: #5f8700;">"C-#"</span> <span style="color: #f4649b;">#'</span><span style="color: #f4649b;">comment-line</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">evil-define-key</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">normal</span> <span style="color: #513969;">dired-mode-map</span>
<span style="color: #5f8700;">(</span><span style="color: #007daf;">kbd</span> <span style="color: #5f8700;">"DEL"</span><span style="color: #5f8700;">)</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">dired-up-directory</span><span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">General Keybindings</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">map!</span> <span style="color: #fe8019;">:n</span> <span style="color: #b8bb26;">"&lt;f12&gt;"</span> <span style="color: #ebdbb2;">#'</span><span style="color: #689d6a;">org-agenda-list</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">map!</span> <span style="color: #fe8019;">:n</span> <span style="color: #b8bb26;">"&lt;f7&gt;"</span> <span style="color: #ebdbb2;">#'</span><span style="color: #689d6a;">org-drill</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">map!</span> <span style="color: #b8bb26;">"C-M-+"</span> <span style="color: #ebdbb2;">#'</span><span style="color: #689d6a;">doom/increase-font-size</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">map!</span> <span style="color: #b8bb26;">"C-#"</span> <span style="color: #ebdbb2;">#'</span><span style="color: #689d6a;">comment-line</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">evil-define-key</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">normal</span> <span style="color: #83a598;">dired-mode-map</span>
<span style="color: #cc241d;">(</span><span style="color: #b8bb26;">kbd</span> <span style="color: #b8bb26;">"DEL"</span><span style="color: #cc241d;">)</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">dired-up-directory</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
<div id="outline-container-org242c54d" class="outline-3">
<h3 id="org242c54d"><span class="section-number-3">2.1.</span> Hooks</h3>
<div id="outline-container-org7b1406d" class="outline-3">
<h3 id="org7b1406d"><span class="section-number-3">2.1.</span> Hooks</h3>
<div class="outline-text-3" id="text-2-1">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Org Mode</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-hook</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">org-mode-hook</span> <span style="color: #f4649b;">#'</span><span style="color: #513969;">org-modern-mode</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-hook</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">org-mode-hook</span> <span style="color: #f4649b;">#'</span><span style="color: #513969;">hl-todo-mode</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #928374;">;; </span><span style="color: #928374;">Org Mode</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">org-mode-hook</span> <span style="color: #ebdbb2;">#'</span><span style="color: #83a598;">org-modern-mode</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">org-mode-hook</span> <span style="color: #ebdbb2;">#'</span><span style="color: #83a598;">hl-todo-mode</span><span style="color: #fe8019;">)</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Org Agenda</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-hook</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">org-agenda-finalize-hook</span> <span style="color: #f4649b;">#'</span><span style="color: #f4649b;">org-modern-agenda</span><span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Org Agenda</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">org-agenda-finalize-hook</span> <span style="color: #ebdbb2;">#'</span><span style="color: #689d6a;">org-modern-agenda</span><span style="color: #fe8019;">)</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Modeline</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-hook</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">doom-after-init-hook</span> <span style="color: #f4649b;">#'</span><span style="color: #513969;">display-battery-mode</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-hook</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">doom-after-init-hook</span> <span style="color: #f4649b;">#'</span><span style="color: #513969;">display-time-mode</span><span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Modeline</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">doom-after-init-hook</span> <span style="color: #ebdbb2;">#'</span><span style="color: #83a598;">display-battery-mode</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">doom-after-init-hook</span> <span style="color: #ebdbb2;">#'</span><span style="color: #83a598;">display-time-mode</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org8b41262" class="outline-2">
<h2 id="org8b41262"><span class="section-number-2">3.</span> Themes</h2>
<div id="outline-container-orgf2aed3b" class="outline-2">
<h2 id="orgf2aed3b"><span class="section-number-2">3.</span> Themes</h2>
<div class="outline-text-2" id="text-3">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">use-package!</span> heaven-and-hell
<span style="color: #007daf;">:ensure</span> t
<span style="color: #007daf;">:config</span>
<span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">heaven-and-hell-theme-type</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">dark</span><span style="color: #5f8700;">)</span> <span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Omit to use light by default</span>
<span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">heaven-and-hell-themes</span>
<span style="color: #f4649b;">'</span><span style="color: #f4649b;">(</span><span style="color: #007daf;">(</span>light . leuven<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span>dark . doom-monokai-octagon<span style="color: #007daf;">)</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span> <span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Themes can be the list: (dark . (tsdh-dark wombat))</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Optionall, load themes without asking for confirmation.</span>
<span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">heaven-and-hell-load-theme-no-confirm</span> t<span style="color: #5f8700;">)</span>
<span style="color: #007daf;">:hook</span> <span style="color: #5f8700;">(</span>after-init . heaven-and-hell-init-hook<span style="color: #5f8700;">)</span>
<span style="color: #007daf;">:bind</span> <span style="color: #5f8700;">(</span><span style="color: #f4649b;">(</span><span style="color: #5f8700;">"C-c &lt;f6&gt;"</span> . heaven-and-hell-load-default-theme<span style="color: #f4649b;">)</span>
<span style="color: #f4649b;">(</span><span style="color: #5f8700;">"&lt;f6&gt;"</span> . heaven-and-hell-toggle-theme<span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">use-package!</span> heaven-and-hell
<span style="color: #fe8019;">:ensure</span> t
<span style="color: #fe8019;">:config</span>
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">heaven-and-hell-theme-type</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">dark</span><span style="color: #cc241d;">)</span> <span style="color: #928374;">;; </span><span style="color: #928374;">Omit to use light by default</span>
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">heaven-and-hell-themes</span>
<span style="color: #ebdbb2;">'</span><span style="color: #b8bb26;">(</span><span style="color: #83a598;">(</span>light . doom-gruvbox-light<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span>dark . doom-gruvbox<span style="color: #83a598;">)</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span> <span style="color: #928374;">;; </span><span style="color: #928374;">Themes can be the list: (dark . (tsdh-dark wombat))</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Optionall, load themes without asking for confirmation.</span>
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">heaven-and-hell-load-theme-no-confirm</span> t<span style="color: #cc241d;">)</span>
<span style="color: #fe8019;">:hook</span> <span style="color: #cc241d;">(</span>after-init . heaven-and-hell-init-hook<span style="color: #cc241d;">)</span>
<span style="color: #fe8019;">:bind</span> <span style="color: #cc241d;">(</span><span style="color: #b8bb26;">(</span><span style="color: #b8bb26;">"&lt;f6&gt;"</span> . heaven-and-hell-toggle-theme<span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orge1f23de" class="outline-2">
<h2 id="orge1f23de"><span class="section-number-2">4.</span> Org Mode</h2>
<div id="outline-container-orgf1767f4" class="outline-2">
<h2 id="orgf1767f4"><span class="section-number-2">4.</span> Org Mode</h2>
<div class="outline-text-2" id="text-4">
</div>
<div id="outline-container-org3a5d36e" class="outline-3">
<h3 id="org3a5d36e"><span class="section-number-3">4.1.</span> General Settings</h3>
<div id="outline-container-org7edeaf3" class="outline-3">
<h3 id="org7edeaf3"><span class="section-number-3">4.1.</span> General Settings</h3>
<div class="outline-text-3" id="text-4-1">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">setq</span> +user-org-path <span style="color: #5f8700;">"~/Notes/Org"</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">defun</span> <span style="color: #007daf;">org-path</span> <span style="color: #5f8700;">(</span>filename<span style="color: #5f8700;">)</span> <span style="color: #5f8700;">(</span><span style="color: #008070;">expand-file-name</span> filename +user-org-path<span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">setq</span> +user-org-path <span style="color: #b8bb26;">"~/Notes/Org"</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">defun</span> <span style="color: #b8bb26;">org-path</span> <span style="color: #cc241d;">(</span>filename<span style="color: #cc241d;">)</span> <span style="color: #cc241d;">(</span><span style="color: #d3869b;">expand-file-name</span> filename +user-org-path<span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> org <span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">org-directory</span> +user-org-path
<span style="color: #513969;">org-src-tab-acts-natively</span> t<span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> org <span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">org-directory</span> +user-org-path
<span style="color: #83a598;">org-src-tab-acts-natively</span> t<span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-to-list</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">org-modules</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">org-habit</span><span style="color: #007daf;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-to-list</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">org-modules</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">org-habit</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9f30c51" class="outline-3">
<h3 id="org9f30c51"><span class="section-number-3">4.2.</span> Org Export</h3>
<div id="outline-container-org86c81c0" class="outline-3">
<h3 id="org86c81c0"><span class="section-number-3">4.2.</span> Org Export</h3>
<div class="outline-text-3" id="text-4-2">
<div class="org-src-container">
<pre class="src src-emacs-lisp">
<span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> org <span style="color: #5f8700;">(</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">TOC Links will lead to errors when attempting</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">to export to HTML</span>
setq <span style="color: #513969;">org-export-exclude-tags</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">(</span><span style="color: #5f8700;">"toc"</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> org <span style="color: #cc241d;">(</span><span style="color: #928374;">;; </span><span style="color: #928374;">TOC Links will lead to errors when attempting</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">to export to HTML</span>
setq <span style="color: #83a598;">org-export-exclude-tags</span> <span style="color: #ebdbb2;">'</span><span style="color: #b8bb26;">(</span><span style="color: #b8bb26;">"toc"</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">defun</span> <span style="color: #007daf;">my-org-inline-css-hook</span> <span style="color: #5f8700;">(</span>exporter<span style="color: #5f8700;">)</span>
<span style="color: #998ca9; font-style: italic;">"Insert custom inline css"</span>
<span style="color: #5f8700;">(</span><span style="color: #875faf;">when</span> <span style="color: #f4649b;">(</span><span style="color: #008070;">eq</span> exporter <span style="color: #f4649b;">'</span><span style="color: #f4649b;">html</span><span style="color: #f4649b;">)</span>
<span style="color: #f4649b;">(</span><span style="color: #875faf;">let*</span> <span style="color: #007daf;">(</span><span style="color: #007daf;">(</span>dir <span style="color: #5f8700;">(</span><span style="color: #875faf;">ignore-errors</span> <span style="color: #f4649b;">(</span><span style="color: #008070;">file-name-directory</span> <span style="color: #007daf;">(</span><span style="color: #513969;">buffer-file-name</span><span style="color: #007daf;">)</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span>path <span style="color: #5f8700;">(</span><span style="color: #008070;">concat</span> dir <span style="color: #5f8700;">"style.css"</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span>fallback-style <span style="color: #5f8700;">(</span><span style="color: #875faf;">or</span> <span style="color: #f4649b;">(</span><span style="color: #008070;">null</span> dir<span style="color: #f4649b;">)</span> <span style="color: #f4649b;">(</span><span style="color: #008070;">null</span> <span style="color: #007daf;">(</span><span style="color: #008070;">file-exists-p</span> path<span style="color: #007daf;">)</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span>final <span style="color: #5f8700;">(</span><span style="color: #875faf;">if</span> fallback-style <span style="color: #5f8700;">"~/.config/doom/style.css"</span> path<span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span><span style="color: #007daf;">)</span> <span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">&lt;- set your own style file path</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">org-html-head-include-default-style</span> t<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">org-html-head</span> <span style="color: #007daf;">(</span><span style="color: #008070;">concat</span>
<span style="color: #5f8700;">"&lt;style type=\"text/css\"&gt;\n"</span>
<span style="color: #5f8700;">"&lt;!--/*--&gt;&lt;![CDATA[/*&gt;&lt;!--*/\n"</span>
<span style="color: #5f8700;">(</span><span style="color: #875faf;">with-temp-buffer</span>
<span style="color: #f4649b;">(</span><span style="color: #008070;">insert-file-contents</span> final<span style="color: #f4649b;">)</span>
<span style="color: #f4649b;">(</span><span style="color: #008070;">buffer-string</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span>
<span style="color: #5f8700;">"/*]]&gt;*/--&gt;\n"</span>
<span style="color: #5f8700;">"&lt;/style&gt;\n"</span><span style="color: #007daf;">)</span><span style="color: #007daf;">)</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<span style="color: #fe8019;">(</span><span style="color: #fb4934;">defun</span> <span style="color: #b8bb26;">my-org-inline-css-hook</span> <span style="color: #cc241d;">(</span>exporter<span style="color: #cc241d;">)</span>
<span style="color: #dfd2b8;">"Insert custom inline css"</span>
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">when</span> <span style="color: #b8bb26;">(</span><span style="color: #d3869b;">eq</span> exporter <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">html</span><span style="color: #b8bb26;">)</span>
<span style="color: #b8bb26;">(</span><span style="color: #fb4934;">let*</span> <span style="color: #83a598;">(</span><span style="color: #fe8019;">(</span>dir <span style="color: #cc241d;">(</span><span style="color: #fb4934;">ignore-errors</span> <span style="color: #b8bb26;">(</span><span style="color: #d3869b;">file-name-directory</span> <span style="color: #83a598;">(</span><span style="color: #83a598;">buffer-file-name</span><span style="color: #83a598;">)</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span>path <span style="color: #cc241d;">(</span><span style="color: #d3869b;">concat</span> dir <span style="color: #b8bb26;">"style.css"</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span>fallback-style <span style="color: #cc241d;">(</span><span style="color: #fb4934;">or</span> <span style="color: #b8bb26;">(</span><span style="color: #d3869b;">null</span> dir<span style="color: #b8bb26;">)</span> <span style="color: #b8bb26;">(</span><span style="color: #d3869b;">null</span> <span style="color: #83a598;">(</span><span style="color: #d3869b;">file-exists-p</span> path<span style="color: #83a598;">)</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #fe8019;">(</span>final <span style="color: #cc241d;">(</span><span style="color: #fb4934;">if</span> fallback-style <span style="color: #b8bb26;">"~/.config/doom/style.css"</span> path<span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span><span style="color: #83a598;">)</span> <span style="color: #928374;">;; </span><span style="color: #928374;">&lt;- set your own style file path</span>
<span style="color: #83a598;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">org-html-head-include-default-style</span> t<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">org-html-head</span> <span style="color: #fe8019;">(</span><span style="color: #d3869b;">concat</span>
<span style="color: #b8bb26;">"&lt;style type=\"text/css\"&gt;\n"</span>
<span style="color: #b8bb26;">"&lt;!--/*--&gt;&lt;![CDATA[/*&gt;&lt;!--*/\n"</span>
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">with-temp-buffer</span>
<span style="color: #b8bb26;">(</span><span style="color: #d3869b;">insert-file-contents</span> final<span style="color: #b8bb26;">)</span>
<span style="color: #b8bb26;">(</span><span style="color: #d3869b;">buffer-string</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span>
<span style="color: #b8bb26;">"/*]]&gt;*/--&gt;\n"</span>
<span style="color: #b8bb26;">"&lt;/style&gt;\n"</span><span style="color: #fe8019;">)</span><span style="color: #83a598;">)</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Org Export</span>
<span style="color: #007daf;">(</span><span style="color: #007daf;">add-hook</span> <span style="color: #f4649b;">'</span><span style="color: #513969;">org-export-before-processing-hook</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">my-org-inline-css-hook</span><span style="color: #007daf;">)</span>
<span style="color: #928374;">;; </span><span style="color: #928374;">Org Export</span>
<span style="color: #fe8019;">(</span><span style="color: #b8bb26;">add-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #83a598;">org-export-before-processing-hook</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">my-org-inline-css-hook</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7d6ea1c" class="outline-3">
<h3 id="org7d6ea1c"><span class="section-number-3">4.3.</span> Org Agenda</h3>
<div id="outline-container-orgeacff10" class="outline-3">
<h3 id="orgeacff10"><span class="section-number-3">4.3.</span> Org Agenda</h3>
<div class="outline-text-3" id="text-4-3">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> org <span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span>
<span style="color: #513969;">org-agenda-show-all-dates</span> nil
<span style="color: #513969;">org-agenda-span</span> <span style="color: #008070; font-weight: bold;">4</span>
<span style="color: #513969;">org-agenda-start-day</span> <span style="color: #5f8700;">"+0d"</span>
org-agenda-spillover-skip-function <span style="color: #f4649b;">'</span><span style="color: #f4649b;">(</span>org-agenda-skip-entry-if <span style="color: #f4649b;">'</span><span style="color: #f4649b;">todo</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">done</span><span style="color: #f4649b;">)</span>
<span style="color: #513969;">org-agenda-time-grid</span>
<span style="color: #f4649b;">'</span><span style="color: #f4649b;">(</span><span style="color: #007daf;">(</span>daily today require-timed<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #008070; font-weight: bold;">800</span> <span style="color: #008070; font-weight: bold;">1000</span> <span style="color: #008070; font-weight: bold;">1200</span> <span style="color: #008070; font-weight: bold;">1400</span> <span style="color: #008070; font-weight: bold;">1600</span> <span style="color: #008070; font-weight: bold;">1800</span> <span style="color: #008070; font-weight: bold;">2000</span><span style="color: #007daf;">)</span>
<span style="color: #5f8700;">" &#9476;&#9476;&#9476;&#9476;&#9476; "</span> <span style="color: #5f8700;">"&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;"</span><span style="color: #f4649b;">)</span>
<span style="color: #513969;">org-agenda-current-time-string</span>
<span style="color: #5f8700;">"&#9664;&#9472;&#9472; now &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \\o/"</span>
<span style="color: #513969;">org-agenda-block-separator</span> ?&#9472;
<span style="color: #B4A5C7; font-style: italic;">;; </span><span style="color: #B4A5C7; font-style: italic;">Consider all org files part of the org-agenda</span>
<span style="color: #513969;">org-agenda-files</span> <span style="color: #f4649b;">(</span><span style="color: #008070;">list</span> +user-org-path<span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> org <span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span>
<span style="color: #83a598;">org-agenda-show-all-dates</span> nil
<span style="color: #83a598;">org-agenda-span</span> <span style="color: #d3869b; font-weight: bold;">4</span>
<span style="color: #83a598;">org-agenda-start-day</span> <span style="color: #b8bb26;">"+0d"</span>
org-agenda-spillover-skip-function <span style="color: #ebdbb2;">'</span><span style="color: #b8bb26;">(</span>org-agenda-skip-entry-if <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">todo</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">done</span><span style="color: #b8bb26;">)</span>
<span style="color: #83a598;">org-agenda-time-grid</span>
<span style="color: #ebdbb2;">'</span><span style="color: #b8bb26;">(</span><span style="color: #83a598;">(</span>daily today require-timed<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #d3869b; font-weight: bold;">800</span> <span style="color: #d3869b; font-weight: bold;">1000</span> <span style="color: #d3869b; font-weight: bold;">1200</span> <span style="color: #d3869b; font-weight: bold;">1400</span> <span style="color: #d3869b; font-weight: bold;">1600</span> <span style="color: #d3869b; font-weight: bold;">1800</span> <span style="color: #d3869b; font-weight: bold;">2000</span><span style="color: #83a598;">)</span>
<span style="color: #b8bb26;">" &#9476;&#9476;&#9476;&#9476;&#9476; "</span> <span style="color: #b8bb26;">"&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;&#9476;"</span><span style="color: #b8bb26;">)</span>
<span style="color: #83a598;">org-agenda-current-time-string</span>
<span style="color: #b8bb26;">"&#9664;&#9472;&#9472; now &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; \\o/"</span>
<span style="color: #83a598;">org-agenda-block-separator</span> ?&#9472;
<span style="color: #928374;">;; </span><span style="color: #928374;">Consider all org files part of the org-agenda</span>
<span style="color: #83a598;">org-agenda-files</span> <span style="color: #b8bb26;">(</span><span style="color: #d3869b;">list</span> +user-org-path<span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org2f48627" class="outline-2">
<h2 id="org2f48627"><span class="section-number-2">5.</span> Packages</h2>
<div id="outline-container-orge7a3973" class="outline-2">
<h2 id="orge7a3973"><span class="section-number-2">5.</span> Packages</h2>
<div class="outline-text-2" id="text-5">
</div>
<div id="outline-container-org2b1a9f6" class="outline-3">
<h3 id="org2b1a9f6"><span class="section-number-3">5.1.</span> hl-todo</h3>
<div id="outline-container-org10ca8a9" class="outline-3">
<h3 id="org10ca8a9"><span class="section-number-3">5.1.</span> hl-todo</h3>
<div class="outline-text-3" id="text-5-1">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> hl-todo <span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">hl-todo-keyword-faces</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">(</span><span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #a07000; font-weight: bold;">TODO</span><span style="color: #5f8700;">"</span> warning bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #dc322f; font-weight: bold;">FIXME</span><span style="color: #5f8700;">"</span> error bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #875faf; font-weight: bold;">EXAMPLE</span><span style="color: #5f8700;">"</span> <span style="color: #513969;">font-lock-keyword-face</span> bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #008070; font-weight: bold;">HACK</span><span style="color: #5f8700;">"</span> <span style="color: #513969;">font-lock-constant-face</span> bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #998ca9; font-weight: bold; font-style: italic;">DEPRECATED</span><span style="color: #5f8700;">"</span> <span style="color: #513969;">font-lock-doc-face</span> bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #5f8700; font-weight: bold;">NOTE</span><span style="color: #5f8700;">"</span> success bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #dc322f; font-weight: bold;">BUG</span><span style="color: #5f8700;">"</span> error bold<span style="color: #007daf;">)</span>
<span style="color: #007daf;">(</span><span style="color: #5f8700;">"</span><span style="color: #008070; font-weight: bold;">XXX</span><span style="color: #5f8700;">"</span> <span style="color: #513969;">font-lock-constant-face</span> bold<span style="color: #007daf;">)</span><span style="color: #f4649b;">)</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> hl-todo <span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">hl-todo-keyword-faces</span> <span style="color: #ebdbb2;">'</span><span style="color: #b8bb26;">(</span><span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #fabd2f; font-weight: bold;">TODO</span><span style="color: #b8bb26;">"</span> warning bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #fb4934; font-weight: bold;">FIXME</span><span style="color: #b8bb26;">"</span> error bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #fb4934; font-weight: bold;">EXAMPLE</span><span style="color: #b8bb26;">"</span> <span style="color: #83a598;">font-lock-keyword-face</span> bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #d3869b; font-weight: bold;">HACK</span><span style="color: #b8bb26;">"</span> <span style="color: #83a598;">font-lock-constant-face</span> bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #dfd2b8; font-weight: bold;">DEPRECATED</span><span style="color: #b8bb26;">"</span> <span style="color: #83a598;">font-lock-doc-face</span> bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #b8bb26; font-weight: bold;">NOTE</span><span style="color: #b8bb26;">"</span> success bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #fb4934; font-weight: bold;">BUG</span><span style="color: #b8bb26;">"</span> error bold<span style="color: #83a598;">)</span>
<span style="color: #83a598;">(</span><span style="color: #b8bb26;">"</span><span style="color: #d3869b; font-weight: bold;">XXX</span><span style="color: #b8bb26;">"</span> <span style="color: #83a598;">font-lock-constant-face</span> bold<span style="color: #83a598;">)</span><span style="color: #b8bb26;">)</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga24ab5a" class="outline-3">
<h3 id="orga24ab5a"><span class="section-number-3">5.2.</span> org-auto-tangle</h3>
<div id="outline-container-orgb292dd1" class="outline-3">
<h3 id="orgb292dd1"><span class="section-number-3">5.2.</span> org-auto-tangle</h3>
<div class="outline-text-3" id="text-5-2">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">use-package!</span> org-auto-tangle
<span style="color: #007daf;">:defer</span> t
<span style="color: #007daf;">:config</span> <span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">org-auto-tangle-default</span> nil<span style="color: #5f8700;">)</span>
<span style="color: #007daf;">:hook</span> <span style="color: #5f8700;">(</span><span style="color: #007daf;">org-mode</span> . <span style="color: #513969;">org-auto-tangle-mode</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">use-package!</span> org-auto-tangle
<span style="color: #fe8019;">:defer</span> t
<span style="color: #fe8019;">:config</span> <span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">org-auto-tangle-default</span> nil<span style="color: #cc241d;">)</span>
<span style="color: #fe8019;">:hook</span> <span style="color: #cc241d;">(</span><span style="color: #b8bb26;">org-mode</span> . <span style="color: #83a598;">org-auto-tangle-mode</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org0907011" class="outline-3">
<h3 id="org0907011"><span class="section-number-3">5.3.</span> org-drill</h3>
<div id="outline-container-org931b602" class="outline-3">
<h3 id="org931b602"><span class="section-number-3">5.3.</span> org-drill</h3>
<div class="outline-text-3" id="text-5-3">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> org-drill
<span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> org-drill-scope <span style="color: #f4649b;">'</span><span style="color: #f4649b;">agenda</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> org-drill
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> org-drill-scope <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">agenda</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org54e4408" class="outline-3">
<h3 id="org54e4408"><span class="section-number-3">5.4.</span> doom-modeline</h3>
<div id="outline-container-org173df8d" class="outline-3">
<h3 id="org173df8d"><span class="section-number-3">5.4.</span> doom-modeline</h3>
<div class="outline-text-3" id="text-5-4">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> doom-modeline
<span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">doom-modeline-battery</span> t<span style="color: #5f8700;">)</span>
<span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">doom-modeline-major-mode-icon</span> t<span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> doom-modeline
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">doom-modeline-battery</span> t<span style="color: #cc241d;">)</span>
<span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">doom-modeline-major-mode-icon</span> t<span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7639f0e" class="outline-3">
<h3 id="org7639f0e"><span class="section-number-3">5.5.</span> evil-snipe</h3>
<div id="outline-container-orgf3784d6" class="outline-3">
<h3 id="orgf3784d6"><span class="section-number-3">5.5.</span> evil-snipe</h3>
<div class="outline-text-3" id="text-5-5">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #007daf;">(</span><span style="color: #875faf;">after!</span> evil-snipe <span style="color: #5f8700;">(</span><span style="color: #875faf;">setq</span> <span style="color: #513969;">evil-snipe-scope</span> <span style="color: #f4649b;">'</span><span style="color: #f4649b;">whole-visible</span><span style="color: #5f8700;">)</span><span style="color: #007daf;">)</span>
<pre class="src src-emacs-lisp"><span style="color: #fe8019;">(</span><span style="color: #fb4934;">after!</span> evil-snipe <span style="color: #cc241d;">(</span><span style="color: #fb4934;">setq</span> <span style="color: #83a598;">evil-snipe-scope</span> <span style="color: #ebdbb2;">'</span><span style="color: #689d6a;">whole-visible</span><span style="color: #cc241d;">)</span><span style="color: #fe8019;">)</span>
</pre>
</div>
</div>
@ -509,7 +507,7 @@ These keybindings extend the default doom bindings, either because the defaults
</div>
<div id="postamble" class="status">
<p class="author">Author: Jonathan Jenne / Inhji</p>
<p class="date">Created: 2024-02-26 Mo 23:29</p>
<p class="date">Created: 2024-02-27 Di 13:59</p>
</div>
</body>
</html>

View File

@ -29,9 +29,9 @@ These keybindings extend the default doom bindings, either because the defaults
| F12 | Show Org-Agenda | N |
| Ctrl-Alt-+ | Increase Font Size | |
| Ctrl-# | Toggle Line Comment | |
| F6 | Toggle Light/Dark Theme | |
| Ctrl-c F6 | Load Default Theme | |
| DEL | Up Directory | Dired |
| F6 | Toggle Light/Dark Theme | |
| F7 | Start Org-Drill | |
* Base Config
@ -51,6 +51,7 @@ These keybindings extend the default doom bindings, either because the defaults
;; General Keybindings
(map! :n "<f12>" #'org-agenda-list)
(map! :n "<f7>" #'org-drill)
(map! "C-M-+" #'doom/increase-font-size)
(map! "C-#" #'comment-line)
(evil-define-key 'normal dired-mode-map
@ -78,13 +79,12 @@ These keybindings extend the default doom bindings, either because the defaults
:config
(setq heaven-and-hell-theme-type 'dark) ;; Omit to use light by default
(setq heaven-and-hell-themes
'((light . leuven)
(dark . doom-monokai-octagon))) ;; Themes can be the list: (dark . (tsdh-dark wombat))
'((light . doom-gruvbox-light)
(dark . doom-gruvbox))) ;; Themes can be the list: (dark . (tsdh-dark wombat))
;; Optionall, load themes without asking for confirmation.
(setq heaven-and-hell-load-theme-no-confirm t)
:hook (after-init . heaven-and-hell-init-hook)
:bind (("C-c <f6>" . heaven-and-hell-load-default-theme)
("<f6>" . heaven-and-hell-toggle-theme)))
:bind (("<f6>" . heaven-and-hell-toggle-theme)))
#+end_src
* Org Mode
@ -104,8 +104,7 @@ These keybindings extend the default doom bindings, either because the defaults
#+begin_src emacs-lisp
(after! org (
;; TOC Links will lead to errors when attempting
(after! org (;; TOC Links will lead to errors when attempting
;; to export to HTML
setq org-export-exclude-tags '("toc")))
@ -130,25 +129,24 @@ These keybindings extend the default doom bindings, either because the defaults
(add-hook 'org-export-before-processing-hook 'my-org-inline-css-hook)
#+end_src
** Org Capture :toc:
#+begin_src emacs-lisp
(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")))
+org-capture-nepali-file (org-path "Nepali.org")))
(after! org (setq org-capture-templates
'(("t" "Personal todo" entry
'(("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" "Nepali")
("w", "Nepali" entry
(file+headline +org-capture-notes-file "Nepali/Vocabulary")
"* " :prepend t)
("nw" "Nepali Word" entry
(file+headline +org-capture-nepali-file "Nepali Words")
"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}" :prepend t :immediate-finish t)
("j" "Journal entries")