|
|
|
@ -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-27 Di 13:59 -->
|
|
|
|
|
<!-- 2024-03-11 Mo 13:42 -->
|
|
|
|
|
<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>
|
|
|
|
@ -210,36 +210,56 @@ body {
|
|
|
|
|
<h2>Table of Contents</h2>
|
|
|
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="#org3e4acbe">1. Keybindings</a></li>
|
|
|
|
|
<li><a href="#org5cb07a1">2. Base Config</a>
|
|
|
|
|
<li><a href="#org204f073">1. Header</a></li>
|
|
|
|
|
<li><a href="#org7391319">2. Keybindings</a></li>
|
|
|
|
|
<li><a href="#org57eb3de">3. Base Config</a></li>
|
|
|
|
|
<li><a href="#org25314e4">4. Appearance</a></li>
|
|
|
|
|
<li><a href="#org2005268">5. Org Mode</a>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="#org7b1406d">2.1. Hooks</a></li>
|
|
|
|
|
<li><a href="#org1df4542">5.1. General Settings</a></li>
|
|
|
|
|
<li><a href="#org05f6b4c">5.2. Org Export</a></li>
|
|
|
|
|
<li><a href="#org8d51933">5.3. Org Capture</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a href="#orgf2aed3b">3. Themes</a></li>
|
|
|
|
|
<li><a href="#orgf1767f4">4. Org Mode</a>
|
|
|
|
|
<li><a href="#org9bf68b3">6. Packages</a>
|
|
|
|
|
<ul>
|
|
|
|
|
<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="#orge7a3973">5. Packages</a>
|
|
|
|
|
<ul>
|
|
|
|
|
<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>
|
|
|
|
|
<li><a href="#org2332759">6.1. doom-modeline</a></li>
|
|
|
|
|
<li><a href="#org5e7b531">6.2. evil-snipe</a></li>
|
|
|
|
|
<li><a href="#orgfbb3b9d">6.3. hl-todo</a></li>
|
|
|
|
|
<li><a href="#org99ad413">6.4. notmuch</a></li>
|
|
|
|
|
<li><a href="#orga8884d1">6.5. nov.el</a></li>
|
|
|
|
|
<li><a href="#org7b2aa40">6.6. olivetti</a></li>
|
|
|
|
|
<li><a href="#org347e270">6.7. org-auto-tangle</a></li>
|
|
|
|
|
<li><a href="#org4b9c602">6.8. org-drill</a></li>
|
|
|
|
|
<li><a href="#org9f83d55">6.9. org-noter</a></li>
|
|
|
|
|
<li><a href="#org20a879b">6.10. org-roam</a></li>
|
|
|
|
|
<li><a href="#org16a2f8f">6.11. drag-stuff</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a href="#orgf60ee49">7. Functions</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org3e4acbe" class="outline-2">
|
|
|
|
|
<h2 id="org3e4acbe"><span class="section-number-2">1.</span> Keybindings</h2>
|
|
|
|
|
<p>
|
|
|
|
|
This config file is built on doom-emacs <code>3.0.0-pre</code> and emacs <code>29.2</code>.
|
|
|
|
|
</p>
|
|
|
|
|
<div id="outline-container-org204f073" class="outline-2">
|
|
|
|
|
<h2 id="org204f073"><span class="section-number-2">1.</span> Header</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-1">
|
|
|
|
|
<p>
|
|
|
|
|
This header will be the first codeblock in the config file.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #a89984;">;;; </span><span style="color: #a89984;">$DOOMDIR/config.el -*- lexical-binding: t; -*-</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org7391319" class="outline-2">
|
|
|
|
|
<h2 id="org7391319"><span class="section-number-2">2.</span> Keybindings</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-2">
|
|
|
|
|
<p>
|
|
|
|
|
These keybindings extend the default doom bindings, either because the defaults were confusing to me or because the binding did not yet exist.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
@ -296,218 +316,429 @@ These keybindings extend the default doom bindings, either because the defaults
|
|
|
|
|
<td class="org-left">Start Org-Drill</td>
|
|
|
|
|
<td class="org-left"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="org-left">SPC m g s</td>
|
|
|
|
|
<td class="org-left">Go to habit stats</td>
|
|
|
|
|
<td class="org-left">Org</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="org-left">M-UP</td>
|
|
|
|
|
<td class="org-left">Move line up</td>
|
|
|
|
|
<td class="org-left"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="org-left">M-DOWN</td>
|
|
|
|
|
<td class="org-left">Move line down</td>
|
|
|
|
|
<td class="org-left"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="org-left">M-LEFT</td>
|
|
|
|
|
<td class="org-left">Move region left</td>
|
|
|
|
|
<td class="org-left"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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: #928374;">;;; </span><span style="color: #928374;">$DOOMDIR/config.el -*- lexical-binding: t; -*-</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: #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: #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: #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;">"<f12>"</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;">"<f7>"</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-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: #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: #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: #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 class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">map!</span> <span style="color: #af3a03;">:n</span> <span style="color: #79740e;">"<f12>"</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">org-agenda-list</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">map!</span> <span style="color: #af3a03;">:n</span> <span style="color: #79740e;">"<f7>"</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">org-drill</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">map!</span> <span style="color: #79740e;">"C-M-+"</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">doom/increase-font-size</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">map!</span> <span style="color: #79740e;">"C-#"</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">comment-line</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">map!</span> <span style="color: #af3a03;">:n</span> <span style="color: #79740e;">"<f8>"</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">emms-playlist-mode-go</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">evil-define-key</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">normal</span> <span style="color: #076678;">dired-mode-map</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #b57614;">kbd</span> <span style="color: #79740e;">"DEL"</span><span style="color: #b16286;">)</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">dired-up-directory</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-orgf2aed3b" class="outline-2">
|
|
|
|
|
<h2 id="orgf2aed3b"><span class="section-number-2">3.</span> Themes</h2>
|
|
|
|
|
<div id="outline-container-org57eb3de" class="outline-2">
|
|
|
|
|
<h2 id="org57eb3de"><span class="section-number-2">3.</span> Base Config</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-3">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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;">"<f6>"</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-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-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: #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: #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: #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-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: #a89984;">;; </span><span style="color: #a89984;">Basic User Settings</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">user-full-name</span> <span style="color: #79740e;">"Jonathan Jenne"</span>
|
|
|
|
|
<span style="color: #076678;">user-mail-address</span> <span style="color: #79740e;">"johnnie@posteo.de"</span><span style="color: #076678;">)</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: #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;"><- 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;">"<style type=\"text/css\">\n"</span>
|
|
|
|
|
<span style="color: #b8bb26;">"<!--/*--><![CDATA[/*><!--*/\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;">"/*]]>*/-->\n"</span>
|
|
|
|
|
<span style="color: #b8bb26;">"</style>\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: #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>
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Default Shell</span>
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Useful if default system shell is not bash</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">shell-file-name</span> <span style="color: #b16286;">(</span><span style="color: #b57614;">executable-find</span> <span style="color: #79740e;">"bash"</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Display Line numbers</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">display-line-numbers-type</span> t<span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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 id="outline-container-org25314e4" class="outline-2">
|
|
|
|
|
<h2 id="org25314e4"><span class="section-number-2">4.</span> Appearance</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-4">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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;">" ┄┄┄┄┄ "</span> <span style="color: #b8bb26;">"┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄"</span><span style="color: #b8bb26;">)</span>
|
|
|
|
|
<span style="color: #83a598;">org-agenda-current-time-string</span>
|
|
|
|
|
<span style="color: #b8bb26;">"◀── now ──────────────────────────────────────────────── \\o/"</span>
|
|
|
|
|
<span style="color: #83a598;">org-agenda-block-separator</span> ?─
|
|
|
|
|
<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 class="src src-emacs-lisp"><span style="color: #a89984;">;; </span><span style="color: #a89984;">Fonts</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">doom-font</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #8f3f71;">font-spec</span> <span style="color: #af3a03;">:family</span> <span style="color: #79740e;">"IBM Plex Mono"</span> <span style="color: #af3a03;">:size</span> <span style="color: #8f3f71; font-weight: bold;">18</span> <span style="color: #af3a03;">:weight</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">medium</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">doom-variable-pitch-font</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #8f3f71;">font-spec</span> <span style="color: #af3a03;">:family</span> <span style="color: #79740e;">"IBM Plex Serif"</span> <span style="color: #af3a03;">:size</span> <span style="color: #8f3f71; font-weight: bold;">18</span> <span style="color: #af3a03;">:weight</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">medium</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> variable-pitch
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #8f3f71;">font-spec</span> <span style="color: #af3a03;">:family</span> <span style="color: #79740e;">"IBM Plex Serif"</span> <span style="color: #af3a03;">:size</span> <span style="color: #8f3f71; font-weight: bold;">18</span> <span style="color: #af3a03;">:weight</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">medium</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Dashboard</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">defun</span> <span style="color: #b57614;">my-weebery-is-always-greater</span> <span style="color: #b16286;">()</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">let*</span> <span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>banner <span style="color: #076678;">'</span><span style="color: #076678;">(</span><span style="color: #79740e;">"EMACS "</span>
|
|
|
|
|
<span style="color: #79740e;">"███▄ ▄███▓ ▒█████ ▒█████ ▓█████▄ "</span>
|
|
|
|
|
<span style="color: #79740e;">"▓██▒▀█▀ ██▒▒██▒ ██▒▒██▒ ██▒▒██▀ ██▌"</span>
|
|
|
|
|
<span style="color: #79740e;">"▓██ ▓██░▒██░ ██▒▒██░ ██▒░██ █▌"</span>
|
|
|
|
|
<span style="color: #79740e;">"▒██ ▒██ ▒██ ██░▒██ ██░░▓█▄ ▌"</span>
|
|
|
|
|
<span style="color: #79740e;">"▒██▒ ░██▒░ ████▓▒░░ ████▓▒░░▒████▓ "</span>
|
|
|
|
|
<span style="color: #79740e;">"░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░▒░▒░ ▒▒▓ ▒ "</span>
|
|
|
|
|
<span style="color: #79740e;">"░ ░ ░ ░ ▒ ▒░ ░ ▒ ▒░ ░ ▒ ▒ "</span>
|
|
|
|
|
<span style="color: #79740e;">"░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒ ░ ░ ░ "</span>
|
|
|
|
|
<span style="color: #79740e;">" ░ ░ ░ ░ ░ ░ "</span>
|
|
|
|
|
<span style="color: #79740e;">" ░ "</span><span style="color: #076678;">)</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span>longest-line <span style="color: #076678;">(</span><span style="color: #8f3f71;">apply</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">max</span> <span style="color: #b16286;">(</span><span style="color: #8f3f71;">mapcar</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">length</span> banner<span style="color: #b16286;">)</span><span style="color: #076678;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">put-text-property</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #8f3f71;">point</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #9d0006;">dolist</span> <span style="color: #076678;">(</span>line banner <span style="color: #b16286;">(</span><span style="color: #8f3f71;">point</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #8f3f71;">insert</span> <span style="color: #b16286;">(</span><span style="color: #b57614;">+doom-dashboard--center</span>
|
|
|
|
|
<span style="color: #076678;">+doom-dashboard--width</span>
|
|
|
|
|
<span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">concat</span> line <span style="color: #d65d0e;">(</span><span style="color: #8f3f71;">make-string</span> <span style="color: #076678;">(</span><span style="color: #8f3f71;">max</span> <span style="color: #8f3f71; font-weight: bold;">0</span> <span style="color: #b16286;">(</span><span style="color: #8f3f71;">-</span> longest-line <span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">length</span> line<span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span> <span style="color: #8f3f71; font-weight: bold;">32</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #79740e;">"\n"</span><span style="color: #076678;">)</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #076678;">'</span><span style="color: #8f3f71;">face</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">doom-dashboard-banner</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">+doom-dashboard-ascii-banner-fn</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">my-weebery-is-always-greater</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #b57614;">remove-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">+doom-dashboard-functions</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">doom-dashboard-widget-shortmenu</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #b57614;">remove-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">+doom-dashboard-functions</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">doom-dashboard-widget-footer</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #b57614;">remove-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">+doom-dashboard-functions</span> <span style="color: #076678;">#'</span><span style="color: #8f3f71;">doom-dashboard-widget-loaded</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Themes</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">use-package!</span> heaven-and-hell
|
|
|
|
|
<span style="color: #af3a03;">:ensure</span> t
|
|
|
|
|
<span style="color: #af3a03;">:config</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">heaven-and-hell-theme-type</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">dark</span><span style="color: #b16286;">)</span> <span style="color: #a89984;">;; </span><span style="color: #a89984;">Omit to use light by default</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">heaven-and-hell-themes</span>
|
|
|
|
|
<span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>light . doom-gruvbox-light<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span>dark . doom-gruvbox<span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span> <span style="color: #a89984;">;; </span><span style="color: #a89984;">Themes can be the list: (dark . (tsdh-dark wombat))</span>
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Optionall, load themes without asking for confirmation.</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">heaven-and-hell-load-theme-no-confirm</span> t<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:hook</span> <span style="color: #b16286;">(</span>after-init . heaven-and-hell-init-hook<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:bind</span> <span style="color: #b16286;">(</span><span style="color: #8ec07c;">(</span><span style="color: #79740e;">"<f6>"</span> . heaven-and-hell-toggle-theme<span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-orge7a3973" class="outline-2">
|
|
|
|
|
<h2 id="orge7a3973"><span class="section-number-2">5.</span> Packages</h2>
|
|
|
|
|
<div id="outline-container-org2005268" class="outline-2">
|
|
|
|
|
<h2 id="org2005268"><span class="section-number-2">5.</span> Org Mode</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-5">
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org10ca8a9" class="outline-3">
|
|
|
|
|
<h3 id="org10ca8a9"><span class="section-number-3">5.1.</span> hl-todo</h3>
|
|
|
|
|
<div id="outline-container-org1df4542" class="outline-3">
|
|
|
|
|
<h3 id="org1df4542"><span class="section-number-3">5.1.</span> General Settings</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-5-1">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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 class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> +user-org-path <span style="color: #79740e;">"~/Notes/Org"</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">defun</span> <span style="color: #b57614;">org-path</span> <span style="color: #b16286;">(</span>filename<span style="color: #b16286;">)</span> <span style="color: #b16286;">(</span><span style="color: #8f3f71;">expand-file-name</span> filename +user-org-path<span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">use-package!</span> org
|
|
|
|
|
<span style="color: #af3a03;">:config</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #a89984;">;; </span><span style="color: #a89984;">General</span>
|
|
|
|
|
<span style="color: #076678;">org-directory</span> +user-org-path
|
|
|
|
|
<span style="color: #076678;">org-src-tab-acts-natively</span> t
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Org Export</span>
|
|
|
|
|
<span style="color: #076678;">org-export-exclude-tags</span> <span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #79740e;">"toc"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Org Capture</span>
|
|
|
|
|
<span style="color: #076678;">+org-capture-notes-file</span> <span style="color: #8ec07c;">(</span><span style="color: #b57614;">org-path</span> <span style="color: #79740e;">"Notes.org"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #076678;">+org-capture-todo-file</span> <span style="color: #8ec07c;">(</span><span style="color: #b57614;">org-path</span> <span style="color: #79740e;">"Todo.org"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #076678;">+org-capture-journal-file</span> <span style="color: #8ec07c;">(</span><span style="color: #b57614;">org-path</span> <span style="color: #79740e;">"Journal.org"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
+org-capture-cooking-file <span style="color: #8ec07c;">(</span><span style="color: #b57614;">org-path</span> <span style="color: #79740e;">"Cooking.org"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
+org-capture-nepali-file <span style="color: #8ec07c;">(</span><span style="color: #b57614;">org-path</span> <span style="color: #79740e;">"Nepali.org"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Org Agenda</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-show-all-dates</span> t
|
|
|
|
|
<span style="color: #076678;">org-agenda-span</span> <span style="color: #8f3f71; font-weight: bold;">4</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-start-day</span> <span style="color: #79740e;">"+0d"</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-tag-filter-preset</span> <span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #79740e;">"-drill"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-time-grid</span>
|
|
|
|
|
<span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>daily today require-timed<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #8f3f71; font-weight: bold;">800</span> <span style="color: #8f3f71; font-weight: bold;">1000</span> <span style="color: #8f3f71; font-weight: bold;">1200</span> <span style="color: #8f3f71; font-weight: bold;">1400</span> <span style="color: #8f3f71; font-weight: bold;">1600</span> <span style="color: #8f3f71; font-weight: bold;">1800</span> <span style="color: #8f3f71; font-weight: bold;">2000</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #79740e;">" ┄┄┄┄┄ "</span> <span style="color: #79740e;">"┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄"</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-current-time-string</span>
|
|
|
|
|
<span style="color: #79740e;">"◀── now ──────────────────────────────────────────────── \\o/"</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-block-separator</span> ?─
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Consider all org files part of the org-agenda</span>
|
|
|
|
|
<span style="color: #076678;">org-agenda-files</span> <span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">list</span> +user-org-path<span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">org-agenda-spillover-skip-function '(org-agenda-skip-entry-if 'todo 'done)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Org Todo</span>
|
|
|
|
|
<span style="color: #076678;">org-todo-keywords</span>
|
|
|
|
|
<span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>sequence <span style="color: #79740e;">"</span><span style="color: #af3a03; font-weight: bold;">TODO</span><span style="color: #79740e;">(t)"</span> <span style="color: #79740e;">"|"</span> <span style="color: #79740e;">"DONE(d)"</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span>sequence <span style="color: #79740e;">"</span><span style="color: #8f3f71; font-weight: bold;">THIS</span><span style="color: #79740e;">(T)"</span> <span style="color: #79740e;">"</span><span style="color: #9d0006; font-weight: bold;">EXAMPLE</span><span style="color: #79740e;">"</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #af3a03;">:bind</span> <span style="color: #b16286;">(</span><span style="color: #af3a03;">:map</span> <span style="color: #076678;">org-mode-map</span> <span style="color: #8ec07c;">(</span><span style="color: #79740e;">"<localleader> g s"</span> . <span style="color: #076678;">#'</span><span style="color: #8f3f71;">org-habit-stats-view-habit-at-point</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:hook</span> <span style="color: #b16286;">(</span>org-after-todo-state-change . org-habit-stats-update-properties<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:init</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #b57614;">add-to-list</span> <span style="color: #076678;">'</span><span style="color: #076678;">org-modules</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">org-habit</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #b57614;">add-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">org-export-before-processing-functions</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">my-org-inline-css-hook</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-orgb292dd1" class="outline-3">
|
|
|
|
|
<h3 id="orgb292dd1"><span class="section-number-3">5.2.</span> org-auto-tangle</h3>
|
|
|
|
|
<div id="outline-container-org05f6b4c" class="outline-3">
|
|
|
|
|
<h3 id="org05f6b4c"><span class="section-number-3">5.2.</span> Org Export</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-5-2">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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 class="src src-emacs-lisp">
|
|
|
|
|
<span style="color: #a89984;">;; </span><span style="color: #a89984;">Org Export</span>
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org931b602" class="outline-3">
|
|
|
|
|
<h3 id="org931b602"><span class="section-number-3">5.3.</span> org-drill</h3>
|
|
|
|
|
<div id="outline-container-org8d51933" class="outline-3">
|
|
|
|
|
<h3 id="org8d51933"><span class="section-number-3">5.3.</span> Org Capture</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-5-3">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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 class="src src-emacs-lisp">
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> org <span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">org-capture-templates</span>
|
|
|
|
|
<span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span><span style="color: #79740e;">"t"</span> <span style="color: #79740e;">"Personal Todo"</span> entry
|
|
|
|
|
<span style="color: #076678;">(</span>file <span style="color: #076678;">+org-capture-todo-file</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #79740e;">"* </span><span style="color: #af3a03; font-weight: bold;">TODO</span><span style="color: #79740e;"> %?\n"</span> <span style="color: #af3a03;">:prepend</span> t<span style="color: #d65d0e;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"r"</span> <span style="color: #79740e;">"Recipe"</span> entry
|
|
|
|
|
<span style="color: #076678;">(</span>file+headline +org-capture-cooking-file <span style="color: #79740e;">"Unsorted"</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #79740e;">"* NEVERMADE %?</span>
|
|
|
|
|
<span style="color: #79740e;">:PROPERTIES:</span>
|
|
|
|
|
<span style="color: #79740e;">:Author:</span>
|
|
|
|
|
<span style="color: #79740e;">:Source:</span>
|
|
|
|
|
<span style="color: #79740e;">:Sent_by:</span>
|
|
|
|
|
<span style="color: #79740e;">:Yield:</span>
|
|
|
|
|
<span style="color: #79740e;">:Prep_Time:</span>
|
|
|
|
|
<span style="color: #79740e;">:Cook_Time:</span>
|
|
|
|
|
<span style="color: #79740e;">:Total_Time:</span>
|
|
|
|
|
<span style="color: #79740e;">:Cost:</span>
|
|
|
|
|
<span style="color: #79740e;">:Description:</span>
|
|
|
|
|
<span style="color: #79740e;">:URL:</span>
|
|
|
|
|
<span style="color: #79740e;">:Added: %u</span>
|
|
|
|
|
<span style="color: #79740e;">:END:</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #79740e;">- [ ] Ingredient 1</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span style="color: #79740e;">1. First Step"</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"n"</span> <span style="color: #79740e;">"Nepali"</span><span style="color: #d65d0e;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"nw"</span> <span style="color: #79740e;">"Nepali Word"</span> entry
|
|
|
|
|
<span style="color: #076678;">(</span>file+headline +org-capture-nepali-file <span style="color: #79740e;">"Nepali Words"</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #79740e;">"* %^{Nepali Word} :drill:\n%\\1\n** Answer\n%^{Translation}"</span> <span style="color: #af3a03;">:prepend</span> t <span style="color: #af3a03;">:immediate-finish</span> t<span style="color: #d65d0e;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"j"</span> <span style="color: #79740e;">"Daily Journal"</span> entry
|
|
|
|
|
<span style="color: #076678;">(</span>file+olp+datetree <span style="color: #076678;">+org-capture-journal-file</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #79740e;">"* %U %?\n"</span> <span style="color: #af3a03;">:prepend</span> t<span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<div id="outline-container-org9bf68b3" class="outline-2">
|
|
|
|
|
<h2 id="org9bf68b3"><span class="section-number-2">6.</span> Packages</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-6">
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org2332759" class="outline-3">
|
|
|
|
|
<h3 id="org2332759"><span class="section-number-3">6.1.</span> doom-modeline</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-1">
|
|
|
|
|
<p>
|
|
|
|
|
The doom modeline can be configured to show different information like time and date, battery info and more.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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 class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> doom-modeline
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">doom-modeline-battery</span> t<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">doom-modeline-major-mode-icon</span> t<span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #b57614;">add-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">doom-after-init-hook</span> <span style="color: #076678;">#'</span><span style="color: #076678;">display-battery-mode</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #b57614;">add-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">doom-after-init-hook</span> <span style="color: #076678;">#'</span><span style="color: #076678;">display-time-mode</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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 id="outline-container-org5e7b531" class="outline-3">
|
|
|
|
|
<h3 id="org5e7b531"><span class="section-number-3">6.2.</span> evil-snipe</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-2">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<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 class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> evil-snipe <span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">evil-snipe-scope</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">whole-visible</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-orgfbb3b9d" class="outline-3">
|
|
|
|
|
<h3 id="orgfbb3b9d"><span class="section-number-3">6.3.</span> hl-todo</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-3">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #b57614;">add-hook</span> <span style="color: #076678;">'</span><span style="color: #076678;">org-mode-hook</span> <span style="color: #076678;">#'</span><span style="color: #076678;">hl-todo-mode</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> hl-todo
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">hl-todo-keyword-faces</span>
|
|
|
|
|
<span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #af3a03; font-weight: bold;">TODO</span><span style="color: #79740e;">"</span> warning bold<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #9d0006; font-weight: bold;">EXAMPLE</span><span style="color: #79740e;">"</span> <span style="color: #076678;">font-lock-keyword-face</span> bold<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #8f3f71; font-weight: bold;">HACK</span><span style="color: #79740e;">"</span> <span style="color: #076678;">font-lock-constant-face</span> bold<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #79740e; font-weight: bold; font-style: italic;">DEPRECATED</span><span style="color: #79740e;">"</span> <span style="color: #076678;">font-lock-doc-face</span> bold<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #79740e; font-weight: bold;">NOTE</span><span style="color: #79740e;">"</span> success bold<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #9d0006; font-weight: bold;">BUG</span><span style="color: #79740e;">"</span> error bold<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #79740e;">"</span><span style="color: #8f3f71; font-weight: bold;">THIS</span><span style="color: #79740e;">"</span> <span style="color: #076678;">font-lock-constant-face</span> bold<span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org99ad413" class="outline-3">
|
|
|
|
|
<h3 id="org99ad413"><span class="section-number-3">6.4.</span> notmuch</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-4">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> +notmuch-home-function <span style="color: #b16286;">(</span><span style="color: #9d0006;">lambda</span> <span style="color: #8ec07c;">()</span> <span style="color: #8ec07c;">(</span>notmuch-search <span style="color: #79740e;">"folder:INBOX"</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">setq</span> +notmuch-sync-backend <span style="color: #076678;">'</span><span style="color: #8f3f71;">offlineimap</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-orga8884d1" class="outline-3">
|
|
|
|
|
<h3 id="orga8884d1"><span class="section-number-3">6.5.</span> nov.el</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-5">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp">
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">use-package!</span> nov
|
|
|
|
|
<span style="color: #af3a03;">:mode</span> <span style="color: #b16286;">(</span><span style="color: #79740e;">"\\.epub\\'"</span> . nov-mode<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:config</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> nov-text-width <span style="color: #8f3f71; font-weight: bold;">70</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
<span style="color: #076678;">(</span><span style="color: #9d0006;">add-hook!</span> <span style="color: #076678;">'</span><span style="color: #8f3f71;">nov-mode-hook</span> <span style="color: #076678;">'</span><span style="color: #b16286;">(</span><span style="color: #076678;">olivetti-mode</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org7b2aa40" class="outline-3">
|
|
|
|
|
<h3 id="org7b2aa40"><span class="section-number-3">6.6.</span> olivetti</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-6">
|
|
|
|
|
<p>
|
|
|
|
|
Centers the text. This is used for reading books in
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">use-package!</span> olivetti
|
|
|
|
|
<span style="color: #af3a03;">:defer</span> t
|
|
|
|
|
<span style="color: #af3a03;">:config</span> <span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">olivetti-body-width</span> <span style="color: #8f3f71; font-weight: bold;">70</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:init</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">add-hook!</span> <span style="color: #076678;">'</span><span style="color: #076678;">org-mode-hook</span> <span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #076678;">olivetti-mode</span> <span style="color: #d65d0e;">(</span><span style="color: #9d0006;">lambda</span> <span style="color: #076678;">()</span> <span style="color: #076678;">(</span><span style="color: #076678;">display-line-numbers-mode</span> <span style="color: #8f3f71; font-weight: bold;">-1</span><span style="color: #076678;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org347e270" class="outline-3">
|
|
|
|
|
<h3 id="org347e270"><span class="section-number-3">6.7.</span> org-auto-tangle</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-7">
|
|
|
|
|
<p>
|
|
|
|
|
This package automatically tangles all sourceblocks in an org file whenever that file is saved. It is very handy to not have to call the tangle command everytime you save.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">use-package!</span> org-auto-tangle
|
|
|
|
|
<span style="color: #af3a03;">:defer</span> t
|
|
|
|
|
<span style="color: #af3a03;">:config</span> <span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">org-auto-tangle-default</span> nil<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #af3a03;">:hook</span> <span style="color: #b16286;">(</span><span style="color: #b57614;">org-mode</span> . <span style="color: #076678;">org-auto-tangle-mode</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org4b9c602" class="outline-3">
|
|
|
|
|
<h3 id="org4b9c602"><span class="section-number-3">6.8.</span> org-drill</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-8">
|
|
|
|
|
<p>
|
|
|
|
|
A package for learning and memorizing using <b>spaced repetition</b>, inspired by applications like Anki.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> org-drill
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> org-drill-scope <span style="color: #076678;">'</span><span style="color: #8f3f71;">agenda</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org9f83d55" class="outline-3">
|
|
|
|
|
<h3 id="org9f83d55"><span class="section-number-3">6.9.</span> org-noter</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-9">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> org-noter
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> org-noter-notes-search-path <span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #79740e;">"~/Notes/Org"</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> org-noter-always-create-frame nil<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> org-noter-doc-split-fraction <span style="color: #076678;">'</span><span style="color: #8ec07c;">(</span><span style="color: #8f3f71; font-weight: bold;">0.75</span> . <span style="color: #8f3f71; font-weight: bold;">0.75</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> org-noter-default-notes-file-names <span style="color: #076678;">'</span><span style="color: #8ec07c;">()</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org20a879b" class="outline-3">
|
|
|
|
|
<h3 id="org20a879b"><span class="section-number-3">6.10.</span> org-roam</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-10">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">after!</span> org-roam
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">org-roam-directory</span> <span style="color: #79740e;">"~/Notes/Org/Roam"</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">setq</span> org-roam-dailies-directory <span style="color: #79740e;">"Daily"</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-org16a2f8f" class="outline-3">
|
|
|
|
|
<h3 id="org16a2f8f"><span class="section-number-3">6.11.</span> drag-stuff</h3>
|
|
|
|
|
<div class="outline-text-3" id="text-6-11">
|
|
|
|
|
<p>
|
|
|
|
|
With drag stuff you can use <code>M-UP</code> and <code>M-DOWN</code> to move lines. You can also mark a region and use <code>M-LEFT</code> and <code>M-RIGHT</code> to move it left and right.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #076678;">drag-stuff-global-mode</span> t<span style="color: #076678;">)</span>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="outline-container-orgf60ee49" class="outline-2">
|
|
|
|
|
<h2 id="orgf60ee49"><span class="section-number-2">7.</span> Functions</h2>
|
|
|
|
|
<div class="outline-text-2" id="text-7">
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
|
<pre class="src src-emacs-lisp"><span style="color: #076678;">(</span><span style="color: #9d0006;">defun</span> <span style="color: #b57614;">my-org-inline-css-hook</span> <span style="color: #b16286;">(</span>exporter<span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #79740e; font-style: italic;">"Insert custom inline css"</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">when</span> <span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">eq</span> exporter <span style="color: #076678;">'</span><span style="color: #8f3f71;">html</span><span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #8ec07c;">(</span><span style="color: #9d0006;">let*</span> <span style="color: #d65d0e;">(</span><span style="color: #076678;">(</span>dir <span style="color: #b16286;">(</span><span style="color: #9d0006;">ignore-errors</span> <span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">file-name-directory</span> <span style="color: #d65d0e;">(</span><span style="color: #076678;">buffer-file-name</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span>path <span style="color: #b16286;">(</span><span style="color: #8f3f71;">concat</span> dir <span style="color: #79740e;">"style.css"</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span>fallback-style <span style="color: #b16286;">(</span><span style="color: #9d0006;">or</span> <span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">null</span> dir<span style="color: #8ec07c;">)</span> <span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">null</span> <span style="color: #d65d0e;">(</span><span style="color: #8f3f71;">file-exists-p</span> path<span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
<span style="color: #076678;">(</span>final <span style="color: #b16286;">(</span><span style="color: #9d0006;">if</span> fallback-style <span style="color: #79740e;">"~/.config/doom/style.css"</span> path<span style="color: #b16286;">)</span><span style="color: #076678;">)</span><span style="color: #d65d0e;">)</span> <span style="color: #a89984;">;; </span><span style="color: #a89984;"><- set your own style file path</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">org-html-head-include-default-style</span> t<span style="color: #d65d0e;">)</span>
|
|
|
|
|
<span style="color: #d65d0e;">(</span><span style="color: #9d0006;">setq</span> <span style="color: #076678;">org-html-head</span> <span style="color: #076678;">(</span><span style="color: #8f3f71;">concat</span>
|
|
|
|
|
<span style="color: #79740e;">"<style type=\"text/css\">\n"</span>
|
|
|
|
|
<span style="color: #79740e;">"<!--/*--><![CDATA[/*><!--*/\n"</span>
|
|
|
|
|
<span style="color: #b16286;">(</span><span style="color: #9d0006;">with-temp-buffer</span>
|
|
|
|
|
<span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">insert-file-contents</span> final<span style="color: #8ec07c;">)</span>
|
|
|
|
|
<span style="color: #8ec07c;">(</span><span style="color: #8f3f71;">buffer-string</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
|
|
|
|
|
<span style="color: #79740e;">"/*]]>*/-->\n"</span>
|
|
|
|
|
<span style="color: #79740e;">"</style>\n"</span><span style="color: #076678;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #076678;">)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="postamble" class="status">
|
|
|
|
|
<p class="author">Author: Jonathan Jenne / Inhji</p>
|
|
|
|
|
<p class="date">Created: 2024-02-27 Di 13:59</p>
|
|
|
|
|
<p class="date">Created: 2024-03-11 Mo 13:42</p>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|