emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 0f45b856ddb454cd35dc8d2672d752fa488db0eb
parent f059572585eb512980ddf5d9ee17843e395e5112
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu,  2 Apr 2020 02:30:43 +0300

fix linum-relative

Diffstat:
Minit.html | 293++++++++++++++++++++++++++++++++++++++++---------------------------------------
Minit.org | 7+++++--
2 files changed, 153 insertions(+), 147 deletions(-)

diff --git a/init.html b/init.html @@ -222,63 +222,63 @@ <div id="content"> <h1 class="title">Emacs Configuration</h1> -<div id="outline-container-org41ef623" class="outline-2"> -<h2 id="org41ef623"><span class="section-number-2">1</span> Table of Contents&#xa0;&#xa0;&#xa0;<span class="tag"><span class="TOC_2_org">TOC_2_org</span></span></h2> +<div id="outline-container-org50365cc" class="outline-2"> +<h2 id="org50365cc"><span class="section-number-2">1</span> Table of Contents&#xa0;&#xa0;&#xa0;<span class="tag"><span class="TOC_2_org">TOC_2_org</span></span></h2> <div class="outline-text-2" id="text-1"> <ul class="org-ul"> -<li><a href="#org87f1088">Intro</a> +<li><a href="#orgb659ff7">Intro</a> <ul class="org-ul"> -<li><a href="#org7c0c5a0">Installation Instructions</a></li> -<li><a href="#orgb4fd2da">Ignoring init.el changes on Git</a></li> -<li><a href="#org17b3129">Meta</a></li> -<li><a href="#org264ec0c">Attribution</a></li> +<li><a href="#org84ae045">Installation Instructions</a></li> +<li><a href="#orgc9dd783">Ignoring init.el changes on Git</a></li> +<li><a href="#orgf8916c9">Meta</a></li> +<li><a href="#orgc172a28">Attribution</a></li> </ul></li> -<li><a href="#orgc127f2a">Startup Settings</a> +<li><a href="#orgc2643ca">Startup Settings</a> <ul class="org-ul"> -<li><a href="#org9a8fcbb">Declutter</a></li> -<li><a href="#org2ce047a">Package management</a></li> -<li><a href="#org1734246">Custom-file</a></li> -<li><a href="#org48ba1cf">Private file</a></li> -<li><a href="#org6705e2e">Starting the server</a></li> +<li><a href="#orgf7cc529">Declutter</a></li> +<li><a href="#org6304d09">Package management</a></li> +<li><a href="#orgbbb5af1">Custom-file</a></li> +<li><a href="#orgeef3089">Private file</a></li> +<li><a href="#orgc2b89e2">Starting the server</a></li> </ul></li> -<li><a href="#orga6db268">Packages</a> +<li><a href="#org50c9901">Packages</a> <ul class="org-ul"> -<li><a href="#org564e468">Evil-mode</a></li> -<li><a href="#org6f0eed6">Org-mode</a></li> -<li><a href="#orgd9a704e">Magit</a></li> -<li><a href="#orgff09bf4">Flycheck</a></li> -<li><a href="#org0af1538">Company Mode</a></li> -<li><a href="#org10d6c30">Mingus</a></li> -<li><a href="#orgf2ebcbb">Projectile</a></li> -<li><a href="#orgfa4cc86">Treemacs</a></li> -<li><a href="#orgb0b35e4">emacs-dashboard</a></li> -<li><a href="#org71bce10">Extras</a></li> +<li><a href="#orgc23d2c1">Evil-mode</a></li> +<li><a href="#org3e1cd67">Org-mode</a></li> +<li><a href="#orgcdb199b">Magit</a></li> +<li><a href="#org5a6b3d7">Flycheck</a></li> +<li><a href="#orgacdfe4c">Company Mode</a></li> +<li><a href="#org51852e9">Mingus</a></li> +<li><a href="#org0d07e3e">Projectile</a></li> +<li><a href="#org066b3c9">Treemacs</a></li> +<li><a href="#orgc94c71d">emacs-dashboard</a></li> +<li><a href="#orgd98f78e">Extras</a></li> </ul></li> -<li><a href="#org749236e">Themes and Icons</a></li> -<li><a href="#orgb6e7f17">Filetype Configurations</a> +<li><a href="#org36c36e0">Themes and Icons</a></li> +<li><a href="#org76777f5">Filetype Configurations</a> <ul class="org-ul"> -<li><a href="#orgf947b39">Default Formatting</a></li> -<li><a href="#orgb4458cd">Markdown</a></li> -<li><a href="#org3f7a3ce">Shell</a></li> -<li><a href="#org3937ebd">Python</a></li> +<li><a href="#org4c39c1f">Default Formatting</a></li> +<li><a href="#org53fb562">Markdown</a></li> +<li><a href="#org902b84f">Shell</a></li> +<li><a href="#orgb4ef550">Python</a></li> </ul></li> -<li><a href="#org69ec650">Other Settings</a> +<li><a href="#orge9f0242">Other Settings</a> <ul class="org-ul"> -<li><a href="#org54ac8be">Dired &#x2013; ls dired</a></li> -<li><a href="#org62594fd">Coding System for Terminal</a></li> -<li><a href="#orgd6b732c">Backup Options</a></li> -<li><a href="#org8699587">Set Browser</a></li> +<li><a href="#org4e7928f">Dired &#x2013; ls dired</a></li> +<li><a href="#orgfa47051">Coding System for Terminal</a></li> +<li><a href="#org61c6002">Backup Options</a></li> +<li><a href="#org0b55f58">Set Browser</a></li> </ul></li> -<li><a href="#org02a634d">Notes</a> +<li><a href="#org9939679">Notes</a> <ul class="org-ul"> -<li><a href="#org8b368e7">Reverting to package.el</a></li> +<li><a href="#orgcf4fd1f">Reverting to package.el</a></li> </ul></li> </ul> </div> </div> -<div id="outline-container-org87f1088" class="outline-2"> -<h2 id="org87f1088"><span class="section-number-2">2</span> Intro</h2> +<div id="outline-container-orgb659ff7" class="outline-2"> +<h2 id="orgb659ff7"><span class="section-number-2">2</span> Intro</h2> <div class="outline-text-2" id="text-2"> <p> This is my emacs configuration file, I used to have a big @@ -294,8 +294,8 @@ might not want on your own setup. </p> </div> -<div id="outline-container-org7c0c5a0" class="outline-3"> -<h3 id="org7c0c5a0"><span class="section-number-3">2.1</span> Installation Instructions</h3> +<div id="outline-container-org84ae045" class="outline-3"> +<h3 id="org84ae045"><span class="section-number-3">2.1</span> Installation Instructions</h3> <div class="outline-text-3" id="text-2-1"> <p> If you want to use my emacs configuration, it is pretty simple @@ -322,8 +322,8 @@ emacs after the initial configuration is done. </div> </div> -<div id="outline-container-orgb4fd2da" class="outline-3"> -<h3 id="orgb4fd2da"><span class="section-number-3">2.2</span> Ignoring init.el changes on Git</h3> +<div id="outline-container-orgc9dd783" class="outline-3"> +<h3 id="orgc9dd783"><span class="section-number-3">2.2</span> Ignoring init.el changes on Git</h3> <div class="outline-text-3" id="text-2-2"> <p> It can be annoying to see whenever you change your init.org @@ -338,8 +338,8 @@ this by doing </div> </div> -<div id="outline-container-org17b3129" class="outline-3"> -<h3 id="org17b3129"><span class="section-number-3">2.3</span> Meta</h3> +<div id="outline-container-orgf8916c9" class="outline-3"> +<h3 id="orgf8916c9"><span class="section-number-3">2.3</span> Meta</h3> <div class="outline-text-3" id="text-2-3"> <p> To load init.el properly we run a function such as this. @@ -362,8 +362,8 @@ To load init.el properly we run a function such as this. </div> </div> -<div id="outline-container-org264ec0c" class="outline-3"> -<h3 id="org264ec0c"><span class="section-number-3">2.4</span> Attribution</h3> +<div id="outline-container-orgc172a28" class="outline-3"> +<h3 id="orgc172a28"><span class="section-number-3">2.4</span> Attribution</h3> <div class="outline-text-3" id="text-2-4"> <p> I am still relatively new to the emacs environment myself. These are @@ -384,8 +384,8 @@ file to manage my Emacs configuration. <a href="https://github.com/larstvei/dot- </div> </div> -<div id="outline-container-orgc127f2a" class="outline-2"> -<h2 id="orgc127f2a"><span class="section-number-2">3</span> Startup Settings</h2> +<div id="outline-container-orgc2643ca" class="outline-2"> +<h2 id="orgc2643ca"><span class="section-number-2">3</span> Startup Settings</h2> <div class="outline-text-2" id="text-3"> <p> The most important stuff are (for me) is <code>use-package</code> and @@ -394,8 +394,8 @@ bars and menus. Also let's disable the splash screen. </p> </div> -<div id="outline-container-org9a8fcbb" class="outline-3"> -<h3 id="org9a8fcbb"><span class="section-number-3">3.1</span> Declutter</h3> +<div id="outline-container-orgf7cc529" class="outline-3"> +<h3 id="orgf7cc529"><span class="section-number-3">3.1</span> Declutter</h3> <div class="outline-text-3" id="text-3-1"> <div class="org-src-container"> <pre class="src src-emacs-lisp">(menu-bar-mode 0) @@ -417,8 +417,8 @@ defined, and, if they are, will set them to 0. </div> </div> -<div id="outline-container-org2ce047a" class="outline-3"> -<h3 id="org2ce047a"><span class="section-number-3">3.2</span> Package management</h3> +<div id="outline-container-org6304d09" class="outline-3"> +<h3 id="org6304d09"><span class="section-number-3">3.2</span> Package management</h3> <div class="outline-text-3" id="text-3-2"> <p> I have switched to straight.el for package management. @@ -446,8 +446,8 @@ to install itself. </div> </div> -<div id="outline-container-org1a1916a" class="outline-4"> -<h4 id="org1a1916a"><span class="section-number-4">3.2.1</span> Straight default configurations</h4> +<div id="outline-container-org6b93d10" class="outline-4"> +<h4 id="org6b93d10"><span class="section-number-4">3.2.1</span> Straight default configurations</h4> <div class="outline-text-4" id="text-3-2-1"> <p> I don't want straight to do complete clones of the package repositories I @@ -461,8 +461,8 @@ am building from. </div> </div> -<div id="outline-container-org1611ba2" class="outline-4"> -<h4 id="org1611ba2"><span class="section-number-4">3.2.2</span> use-package</h4> +<div id="outline-container-org9380eb7" class="outline-4"> +<h4 id="org9380eb7"><span class="section-number-4">3.2.2</span> use-package</h4> <div class="outline-text-4" id="text-3-2-2"> <p> We need use-package for maintaining other packages. @@ -477,8 +477,8 @@ We need use-package for maintaining other packages. </div> </div> -<div id="outline-container-org1734246" class="outline-3"> -<h3 id="org1734246"><span class="section-number-3">3.3</span> Custom-file</h3> +<div id="outline-container-orgbbb5af1" class="outline-3"> +<h3 id="orgbbb5af1"><span class="section-number-3">3.3</span> Custom-file</h3> <div class="outline-text-3" id="text-3-3"> <p> I don't like custom variables on my init.el, I prefer having it on @@ -502,8 +502,8 @@ Let's load the custom-file if it is there </div> </div> -<div id="outline-container-org48ba1cf" class="outline-3"> -<h3 id="org48ba1cf"><span class="section-number-3">3.4</span> Private file</h3> +<div id="outline-container-orgeef3089" class="outline-3"> +<h3 id="orgeef3089"><span class="section-number-3">3.4</span> Private file</h3> <div class="outline-text-3" id="text-3-4"> <p> Let's load a private file if it exists @@ -519,15 +519,15 @@ Let's load a private file if it exists </div> </div> </div> -<div id="outline-container-org6705e2e" class="outline-3"> -<h3 id="org6705e2e"><span class="section-number-3">3.5</span> Starting the server</h3> +<div id="outline-container-orgc2b89e2" class="outline-3"> +<h3 id="orgc2b89e2"><span class="section-number-3">3.5</span> Starting the server</h3> <div class="outline-text-3" id="text-3-5"> <p> I used to have an alias for running emacsclient, now I use a tiny script for it. </p> <div class="org-src-container"> -<pre class="src src-sh" id="org47ab22b"><span style="color: #62686E;">#</span><span style="color: #62686E;">!/bin/</span><span style="color: #51afef;">sh</span> +<pre class="src src-sh" id="org020c127"><span style="color: #62686E;">#</span><span style="color: #62686E;">!/bin/</span><span style="color: #51afef;">sh</span> <span style="color: #DFDFDF;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #7bc275;">"${EMACSCLIENT_EXTRA_OPTIONS}"</span> tty &gt;/dev/null 2&gt;&amp;1 &amp;&amp; <span style="color: #DFDFDF;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #7bc275;">"$EMACSCLIENT_EXTRA_OPTIONS -nw"</span> @@ -561,8 +561,8 @@ You can install the generated emc script by doing </div> </div> -<div id="outline-container-orga6db268" class="outline-2"> -<h2 id="orga6db268"><span class="section-number-2">4</span> Packages</h2> +<div id="outline-container-org50c9901" class="outline-2"> +<h2 id="org50c9901"><span class="section-number-2">4</span> Packages</h2> <div class="outline-text-2" id="text-4"> <p> Now we can continue by loading our packages, those are listed according @@ -570,8 +570,8 @@ to how important they are to me. </p> </div> -<div id="outline-container-org564e468" class="outline-3"> -<h3 id="org564e468"><span class="section-number-3">4.1</span> Evil-mode</h3> +<div id="outline-container-orgc23d2c1" class="outline-3"> +<h3 id="orgc23d2c1"><span class="section-number-3">4.1</span> Evil-mode</h3> <div class="outline-text-3" id="text-4-1"> <p> I am an old vim user, and I do not want to miss out on the beauty of vim @@ -606,8 +606,8 @@ We didn't ask for the keybindings yet, because we are going to get the </div> </div> -<div id="outline-container-orgd2097e0" class="outline-4"> -<h4 id="orgd2097e0"><span class="section-number-4">4.1.1</span> evil-surround</h4> +<div id="outline-container-orge64d041" class="outline-4"> +<h4 id="orge64d041"><span class="section-number-4">4.1.1</span> evil-surround</h4> <div class="outline-text-4" id="text-4-1-1"> <p> I used to make use of vim-sandwich, but evil-surround will also @@ -627,14 +627,14 @@ do the job well for me. </div> </div> -<div id="outline-container-org6f0eed6" class="outline-3"> -<h3 id="org6f0eed6"><span class="section-number-3">4.2</span> Org-mode</h3> +<div id="outline-container-org3e1cd67" class="outline-3"> +<h3 id="org3e1cd67"><span class="section-number-3">4.2</span> Org-mode</h3> <div class="outline-text-3" id="text-4-2"> <p> Org mode is one of the biggest reasons I am using Emacs, and it is a must for me. These are my configurations. Starting with the obvious here. I am currently trying to tweak portions of it from Bernt's configuration. See -the <a href="#org264ec0c">2.4</a> section. +the <a href="#orgc172a28">2.4</a> section. </p> <div class="org-src-container"> @@ -692,8 +692,8 @@ the <a href="#org264ec0c">2.4</a> section. </div> </div> -<div id="outline-container-org819c781" class="outline-4"> -<h4 id="org819c781"><span class="section-number-4">4.2.1</span> evil-org</h4> +<div id="outline-container-org629705b" class="outline-4"> +<h4 id="org629705b"><span class="section-number-4">4.2.1</span> evil-org</h4> <div class="outline-text-4" id="text-4-2-1"> <p> I am quite serious on this vim stuff now. I want it everywhere. @@ -719,8 +719,8 @@ further. </div> </div> -<div id="outline-container-orgd9a704e" class="outline-3"> -<h3 id="orgd9a704e"><span class="section-number-3">4.3</span> Magit</h3> +<div id="outline-container-orgcdb199b" class="outline-3"> +<h3 id="orgcdb199b"><span class="section-number-3">4.3</span> Magit</h3> <div class="outline-text-3" id="text-4-3"> <p> I like magit, it is quite useful when you don't want to leave emacs and @@ -736,8 +736,8 @@ along with it. </div> </div> -<div id="outline-container-org49386e1" class="outline-4"> -<h4 id="org49386e1"><span class="section-number-4">4.3.1</span> evil-magit</h4> +<div id="outline-container-org69452e5" class="outline-4"> +<h4 id="org69452e5"><span class="section-number-4">4.3.1</span> evil-magit</h4> <div class="outline-text-4" id="text-4-3-1"> <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">evil-magit</span> @@ -750,8 +750,8 @@ along with it. </div> </div> -<div id="outline-container-orgff09bf4" class="outline-3"> -<h3 id="orgff09bf4"><span class="section-number-3">4.4</span> Flycheck</h3> +<div id="outline-container-org5a6b3d7" class="outline-3"> +<h3 id="org5a6b3d7"><span class="section-number-3">4.4</span> Flycheck</h3> <div class="outline-text-3" id="text-4-4"> <p> I use flycheck for async syntax and error checking. It can be really useful @@ -768,8 +768,8 @@ hacky and buggy on Vim. </div> </div> -<div id="outline-container-org0af1538" class="outline-3"> -<h3 id="org0af1538"><span class="section-number-3">4.5</span> Company Mode</h3> +<div id="outline-container-orgacdfe4c" class="outline-3"> +<h3 id="orgacdfe4c"><span class="section-number-3">4.5</span> Company Mode</h3> <div class="outline-text-3" id="text-4-5"> <p> Company is a tool that I am still very unfamiliar with. I used to @@ -787,8 +787,8 @@ much yet. Pretty simple config. </div> </div> -<div id="outline-container-org8859b2c" class="outline-4"> -<h4 id="org8859b2c"><span class="section-number-4">4.5.1</span> Company LSP</h4> +<div id="outline-container-orgafab18d" class="outline-4"> +<h4 id="orgafab18d"><span class="section-number-4">4.5.1</span> Company LSP</h4> <div class="outline-text-4" id="text-4-5-1"> <p> I am using Company's own Language Server Protocol. It is good as @@ -807,8 +807,8 @@ far as I can wrap my head-around. </div> </div> -<div id="outline-container-org10d6c30" class="outline-3"> -<h3 id="org10d6c30"><span class="section-number-3">4.6</span> Mingus</h3> +<div id="outline-container-org51852e9" class="outline-3"> +<h3 id="org51852e9"><span class="section-number-3">4.6</span> Mingus</h3> <div class="outline-text-3" id="text-4-6"> <p> Mingus is an <a href="https://musicpd.org">MPD</a> client for the Emacs operating system. It has a rather @@ -822,8 +822,8 @@ simple, straightforward interface. </div> </div> </div> -<div id="outline-container-orgf2ebcbb" class="outline-3"> -<h3 id="orgf2ebcbb"><span class="section-number-3">4.7</span> Projectile</h3> +<div id="outline-container-org0d07e3e" class="outline-3"> +<h3 id="org0d07e3e"><span class="section-number-3">4.7</span> Projectile</h3> <div class="outline-text-3" id="text-4-7"> <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">projectile</span> @@ -834,8 +834,8 @@ simple, straightforward interface. </div> </div> </div> -<div id="outline-container-orgfa4cc86" class="outline-3"> -<h3 id="orgfa4cc86"><span class="section-number-3">4.8</span> Treemacs</h3> +<div id="outline-container-org066b3c9" class="outline-3"> +<h3 id="org066b3c9"><span class="section-number-3">4.8</span> Treemacs</h3> <div class="outline-text-3" id="text-4-8"> <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">treemacs</span> @@ -862,7 +862,7 @@ simple, straightforward interface. </div> <ol class="org-ol"> -<li><a id="orgf392742"></a>Keybindings<br /> +<li><a id="org402f0e4"></a>Keybindings<br /> <div class="outline-text-5" id="text-4-8-0-1"> <p> These tables are taken from the <a href="https://github.com/Alexander-Miller/treemacs">Treemacs Github page</a> @@ -971,8 +971,8 @@ These tables are taken from the <a href="https://github.com/Alexander-Miller/tre </ol> </div> -<div id="outline-container-orgb0b35e4" class="outline-3"> -<h3 id="orgb0b35e4"><span class="section-number-3">4.9</span> emacs-dashboard</h3> +<div id="outline-container-orgc94c71d" class="outline-3"> +<h3 id="orgc94c71d"><span class="section-number-3">4.9</span> emacs-dashboard</h3> <div class="outline-text-3" id="text-4-9"> <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">dashboard</span> @@ -989,16 +989,16 @@ These tables are taken from the <a href="https://github.com/Alexander-Miller/tre </div> </div> </div> -<div id="outline-container-org71bce10" class="outline-3"> -<h3 id="org71bce10"><span class="section-number-3">4.10</span> Extras</h3> +<div id="outline-container-orgd98f78e" class="outline-3"> +<h3 id="orgd98f78e"><span class="section-number-3">4.10</span> Extras</h3> <div class="outline-text-3" id="text-4-10"> <p> These don't really deserve their own sections, but I prefer to use them. </p> </div> -<div id="outline-container-org3c5c540" class="outline-4"> -<h4 id="org3c5c540"><span class="section-number-4">4.10.1</span> sudo-edit</h4> +<div id="outline-container-org259aaa5" class="outline-4"> +<h4 id="org259aaa5"><span class="section-number-4">4.10.1</span> sudo-edit</h4> <div class="outline-text-4" id="text-4-10-1"> <p> This is a package for re-initiating a file as root. @@ -1011,8 +1011,8 @@ This is a package for re-initiating a file as root. </div> </div> -<div id="outline-container-org60de7d6" class="outline-4"> -<h4 id="org60de7d6"><span class="section-number-4">4.10.2</span> linum-relative</h4> +<div id="outline-container-org81e9388" class="outline-4"> +<h4 id="org81e9388"><span class="section-number-4">4.10.2</span> linum-relative</h4> <div class="outline-text-4" id="text-4-10-2"> <p> I just like seeing the current line number and the relatives of @@ -1022,15 +1022,18 @@ the other lines. <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">linum-relative</span> <span style="color: #C57BDB;">:straight</span> t - <span style="color: #C57BDB;">:bind</span> (<span style="color: #7bc275;">"C-c r"</span> . linum-relative-mode) - <span style="color: #C57BDB;">:custom</span> (linum-relative-current-symbol <span style="color: #7bc275;">""</span>)) + <span style="color: #C57BDB;">:bind</span> (<span style="color: #7bc275;">"C-c r"</span> . display-line-numbers-mode) + <span style="color: #C57BDB;">:custom</span> + (linum-relative-current-symbol <span style="color: #7bc275;">""</span>) + (display-line-numbers-type 'visual) + <span style="color: #C57BDB;">:hook</span> (prog-mode . display-line-numbers-mode)) </pre> </div> </div> </div> -<div id="outline-container-org31ce138" class="outline-4"> -<h4 id="org31ce138"><span class="section-number-4">4.10.3</span> markdown-mode</h4> +<div id="outline-container-org5a9e1a0" class="outline-4"> +<h4 id="org5a9e1a0"><span class="section-number-4">4.10.3</span> markdown-mode</h4> <div class="outline-text-4" id="text-4-10-3"> <p> I sometimes use this to test the HTML output of markdown documents @@ -1046,8 +1049,8 @@ that I write. </div> </div> -<div id="outline-container-orgf21f971" class="outline-4"> -<h4 id="orgf21f971"><span class="section-number-4">4.10.4</span> htmlize</h4> +<div id="outline-container-orgf3e3515" class="outline-4"> +<h4 id="orgf3e3515"><span class="section-number-4">4.10.4</span> htmlize</h4> <div class="outline-text-4" id="text-4-10-4"> <p> I sometimes output html from org-mode as it comes handy. We use htmlize for @@ -1061,8 +1064,8 @@ that. </div> </div> -<div id="outline-container-org8ea6cfa" class="outline-4"> -<h4 id="org8ea6cfa"><span class="section-number-4">4.10.5</span> toc-org</h4> +<div id="outline-container-org3758c27" class="outline-4"> +<h4 id="org3758c27"><span class="section-number-4">4.10.5</span> toc-org</h4> <div class="outline-text-4" id="text-4-10-5"> <p> I want to have a basic table-of-contents generation on my org-files @@ -1081,8 +1084,8 @@ Github README. </div> </div> -<div id="outline-container-org749236e" class="outline-2"> -<h2 id="org749236e"><span class="section-number-2">5</span> Themes and Icons</h2> +<div id="outline-container-org36c36e0" class="outline-2"> +<h2 id="org36c36e0"><span class="section-number-2">5</span> Themes and Icons</h2> <div class="outline-text-2" id="text-5"> <p> I used to make use of my Xresources themes, but I sometimes sadly @@ -1091,8 +1094,8 @@ time. </p> </div> -<div id="outline-container-orga818a4b" class="outline-4"> -<h4 id="orga818a4b"><span class="section-number-4">5.0.1</span> Doom themes</h4> +<div id="outline-container-org2f05abb" class="outline-4"> +<h4 id="org2f05abb"><span class="section-number-4">5.0.1</span> Doom themes</h4> <div class="outline-text-4" id="text-5-0-1"> <p> I want to use the default doom-theme (perhaps I can switch to @@ -1121,8 +1124,8 @@ The 'if' statement makes sure we have </div> </div> -<div id="outline-container-orge71f362" class="outline-4"> -<h4 id="orge71f362"><span class="section-number-4">5.0.2</span> All the icons</h4> +<div id="outline-container-orgaef679f" class="outline-4"> +<h4 id="orgaef679f"><span class="section-number-4">5.0.2</span> All the icons</h4> <div class="outline-text-4" id="text-5-0-2"> <p> All the icons is an icon-pack. I mean it probably isn't hard to @@ -1137,8 +1140,8 @@ guess. Pretty straightforward. </div> </div> </div> -<div id="outline-container-orgb6e7f17" class="outline-2"> -<h2 id="orgb6e7f17"><span class="section-number-2">6</span> Filetype Configurations</h2> +<div id="outline-container-org76777f5" class="outline-2"> +<h2 id="org76777f5"><span class="section-number-2">6</span> Filetype Configurations</h2> <div class="outline-text-2" id="text-6"> <p> I would like to have some different configurations for filetypes. Those @@ -1146,8 +1149,8 @@ are for indents and spaces, mostly. </p> </div> -<div id="outline-container-orgf947b39" class="outline-3"> -<h3 id="orgf947b39"><span class="section-number-3">6.1</span> Default Formatting</h3> +<div id="outline-container-org4c39c1f" class="outline-3"> +<h3 id="org4c39c1f"><span class="section-number-3">6.1</span> Default Formatting</h3> <div class="outline-text-3" id="text-6-1"> <p> Here is the default formatting for most files. I don't like tabs as indents @@ -1163,8 +1166,8 @@ so I avoid them wherever I can. </div> </div> -<div id="outline-container-orgb4458cd" class="outline-3"> -<h3 id="orgb4458cd"><span class="section-number-3">6.2</span> Markdown</h3> +<div id="outline-container-org53fb562" class="outline-3"> +<h3 id="org53fb562"><span class="section-number-3">6.2</span> Markdown</h3> <div class="outline-text-3" id="text-6-2"> <p> For markdown, I want to have 4 spaces as an indentation. @@ -1181,8 +1184,8 @@ For markdown, I want to have 4 spaces as an indentation. </div> </div> -<div id="outline-container-org3f7a3ce" class="outline-3"> -<h3 id="org3f7a3ce"><span class="section-number-3">6.3</span> Shell</h3> +<div id="outline-container-org902b84f" class="outline-3"> +<h3 id="org902b84f"><span class="section-number-3">6.3</span> Shell</h3> <div class="outline-text-3" id="text-6-3"> <p> For shell, I want to have 4 spaces as an indentation. @@ -1198,8 +1201,8 @@ For shell, I want to have 4 spaces as an indentation. </div> </div> -<div id="outline-container-org3937ebd" class="outline-3"> -<h3 id="org3937ebd"><span class="section-number-3">6.4</span> Python</h3> +<div id="outline-container-orgb4ef550" class="outline-3"> +<h3 id="orgb4ef550"><span class="section-number-3">6.4</span> Python</h3> <div class="outline-text-3" id="text-6-4"> <p> I use the django framework quite frequently at work. So I want a few packages @@ -1207,8 +1210,8 @@ for that as well. </p> </div> -<div id="outline-container-org11ed92c" class="outline-4"> -<h4 id="org11ed92c"><span class="section-number-4">6.4.1</span> Company jedi</h4> +<div id="outline-container-org560dfba" class="outline-4"> +<h4 id="org560dfba"><span class="section-number-4">6.4.1</span> Company jedi</h4> <div class="outline-text-4" id="text-6-4-1"> <p> Company jedi is for better completion while I am editing python files. Here @@ -1227,8 +1230,8 @@ is the use-package </div> </div> </div> -<div id="outline-container-org69ec650" class="outline-2"> -<h2 id="org69ec650"><span class="section-number-2">7</span> Other Settings</h2> +<div id="outline-container-orge9f0242" class="outline-2"> +<h2 id="orge9f0242"><span class="section-number-2">7</span> Other Settings</h2> <div class="outline-text-2" id="text-7"> <p> Those are small settings for emacs that I cannot categorize but have importance @@ -1236,8 +1239,8 @@ for me. </p> </div> -<div id="outline-container-org54ac8be" class="outline-3"> -<h3 id="org54ac8be"><span class="section-number-3">7.1</span> Dired &#x2013; ls dired</h3> +<div id="outline-container-org4e7928f" class="outline-3"> +<h3 id="org4e7928f"><span class="section-number-3">7.1</span> Dired &#x2013; ls dired</h3> <div class="outline-text-3" id="text-7-1"> <p> I use suckless.org's <code>sbase</code> as my coreutils. The <code>ls</code> program that I use does @@ -1253,8 +1256,8 @@ not have a <code>--dired</code> option. Let's disable it. </div> </div> -<div id="outline-container-org62594fd" class="outline-3"> -<h3 id="org62594fd"><span class="section-number-3">7.2</span> Coding System for Terminal</h3> +<div id="outline-container-orgfa47051" class="outline-3"> +<h3 id="orgfa47051"><span class="section-number-3">7.2</span> Coding System for Terminal</h3> <div class="outline-text-3" id="text-7-2"> <p> I want emacs to use utf-8 so my terminal isn't filled with '?' characters. @@ -1265,8 +1268,8 @@ I want emacs to use utf-8 so my terminal isn't filled with '?' characters. </div> </div> </div> -<div id="outline-container-orgd6b732c" class="outline-3"> -<h3 id="orgd6b732c"><span class="section-number-3">7.3</span> Backup Options</h3> +<div id="outline-container-org61c6002" class="outline-3"> +<h3 id="org61c6002"><span class="section-number-3">7.3</span> Backup Options</h3> <div class="outline-text-3" id="text-7-3"> <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq</span> backup-directory-alist `((<span style="color: #7bc275;">"."</span> . <span style="color: #7bc275;">"~/.cache/emacs/saves"</span>))) @@ -1275,8 +1278,8 @@ I want emacs to use utf-8 so my terminal isn't filled with '?' characters. </div> </div> -<div id="outline-container-org8699587" class="outline-3"> -<h3 id="org8699587"><span class="section-number-3">7.4</span> Set Browser</h3> +<div id="outline-container-org0b55f58" class="outline-3"> +<h3 id="org0b55f58"><span class="section-number-3">7.4</span> Set Browser</h3> <div class="outline-text-3" id="text-7-4"> <p> I am setting the default browser from the BROWSER environment variable @@ -1293,15 +1296,15 @@ so that I don't have to keep track of it in case I ever change my browser. </div> </div> </div> -<div id="outline-container-org02a634d" class="outline-2"> -<h2 id="org02a634d"><span class="section-number-2">8</span> Notes</h2> +<div id="outline-container-org9939679" class="outline-2"> +<h2 id="org9939679"><span class="section-number-2">8</span> Notes</h2> <div class="outline-text-2" id="text-8"> </div> -<div id="outline-container-org8b368e7" class="outline-3"> -<h3 id="org8b368e7"><span class="section-number-3">8.1</span> Reverting to package.el</h3> +<div id="outline-container-orgcf4fd1f" class="outline-3"> +<h3 id="orgcf4fd1f"><span class="section-number-3">8.1</span> Reverting to package.el</h3> <div class="outline-text-3" id="text-8-1"> <p> -You can always revert back to <code>package.el</code> by replacing the <a href="#org2ce047a">3.2</a> +You can always revert back to <code>package.el</code> by replacing the <a href="#org6304d09">3.2</a> section with the following configuration steps. This can be for many reasons. For example I have reverted to package.el on my old laptop where I don't want deal with compilation, and I don't want to keep git repositories of every package @@ -1310,8 +1313,8 @@ about the internals of straight. </p> </div> -<div id="outline-container-orgf87a990" class="outline-4"> -<h4 id="orgf87a990"><span class="section-number-4">8.1.1</span> Replacing the bootstrap command</h4> +<div id="outline-container-orgfee6cad" class="outline-4"> +<h4 id="orgfee6cad"><span class="section-number-4">8.1.1</span> Replacing the bootstrap command</h4> <div class="outline-text-4" id="text-8-1-1"> <p> You need to replace the <code>straight.el</code> package manager bootstrapper. This is @@ -1339,8 +1342,8 @@ as it works with package.el </div> </div> -<div id="outline-container-org22b140f" class="outline-4"> -<h4 id="org22b140f"><span class="section-number-4">8.1.2</span> Making use-package work with package.el</h4> +<div id="outline-container-orga14d8f5" class="outline-4"> +<h4 id="orga14d8f5"><span class="section-number-4">8.1.2</span> Making use-package work with package.el</h4> <div class="outline-text-4" id="text-8-1-2"> <p> Now, replace the second code-block in the section with the following diff --git a/init.org b/init.org @@ -510,8 +510,11 @@ the other lines. #+BEGIN_SRC emacs-lisp (use-package linum-relative :straight t - :bind ("C-c r" . linum-relative-mode) - :custom (linum-relative-current-symbol "")) + :bind ("C-c r" . display-line-numbers-mode) + :custom + (linum-relative-current-symbol "") + (display-line-numbers-type 'visual) + :hook (prog-mode . display-line-numbers-mode)) #+END_SRC *** markdown-mode