emacs.d

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

commit 2972c0c43b39ca88def5811f35097f30877232a5
parent cac07e3f0ce5fba95fc4e891e3030d1fca3c8469
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed,  1 Apr 2020 02:17:56 +0300

tons of nitpicks

Diffstat:
Minit.html | 470++++++++++++++++++++++++++++++++++++-------------------------------------------
Minit.org | 164++++++++++++++++++++++++++++++++-----------------------------------------------
2 files changed, 279 insertions(+), 355 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-org52dba46" class="outline-2"> -<h2 id="org52dba46"><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-org2d1f648" class="outline-2"> +<h2 id="org2d1f648"><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="#org9dc3333">Intro</a> +<li><a href="#org5369497">Intro</a> <ul class="org-ul"> -<li><a href="#org110c774">Installation Instructions</a></li> -<li><a href="#org00a463e">Ignoring init.el changes on Git</a></li> -<li><a href="#org3f2b602">Meta</a></li> -<li><a href="#org3f7639b">Attribution</a></li> +<li><a href="#orgcf79123">Installation Instructions</a></li> +<li><a href="#org0878513">Ignoring init.el changes on Git</a></li> +<li><a href="#org3fd88b4">Meta</a></li> +<li><a href="#org56945ca">Attribution</a></li> </ul></li> -<li><a href="#org81acaca">Startup Settings</a> +<li><a href="#orga5a78f6">Startup Settings</a> <ul class="org-ul"> -<li><a href="#orgea6f950">Declutter</a></li> -<li><a href="#org0b67b73">Package management</a></li> -<li><a href="#org0e741b5">Custom-file</a></li> -<li><a href="#org371f4bc">Private file</a></li> -<li><a href="#org1b8bded">Starting the server</a></li> +<li><a href="#orgae2047d">Declutter</a></li> +<li><a href="#org3c6b505">Package management</a></li> +<li><a href="#orgd8b01a5">Custom-file</a></li> +<li><a href="#org735ac6b">Private file</a></li> +<li><a href="#org98af7b2">Starting the server</a></li> </ul></li> -<li><a href="#orgc212256">Packages</a> +<li><a href="#org10cc32a">Packages</a> <ul class="org-ul"> -<li><a href="#org4835267">Evil-mode</a></li> -<li><a href="#orgdfc2537">Org-mode</a></li> -<li><a href="#org205dfa5">Magit</a></li> -<li><a href="#org167ef45">Flycheck</a></li> -<li><a href="#org0552f83">Company Mode</a></li> -<li><a href="#org21c2bac">Mingus</a></li> -<li><a href="#orgaebe008">Projectile</a></li> -<li><a href="#org3aae1ad">Treemacs</a></li> -<li><a href="#org2632797">emacs-dashboard</a></li> -<li><a href="#orge2f9ffe">Extras</a></li> +<li><a href="#org3338e06">Evil-mode</a></li> +<li><a href="#orgcffb2ed">Org-mode</a></li> +<li><a href="#orgf783bc2">Magit</a></li> +<li><a href="#orgde8420f">Flycheck</a></li> +<li><a href="#org7dedeec">Company Mode</a></li> +<li><a href="#orgbcc5271">Mingus</a></li> +<li><a href="#orgd39743f">Projectile</a></li> +<li><a href="#org2b34757">Treemacs</a></li> +<li><a href="#orgf5d3ae8">emacs-dashboard</a></li> +<li><a href="#org9a59c8c">Extras</a></li> </ul></li> -<li><a href="#orgcaa5347">Themes and Icons</a></li> -<li><a href="#org3e89807">Filetype Configurations</a> +<li><a href="#orgeb25b1a">Themes and Icons</a></li> +<li><a href="#org2a454fa">Filetype Configurations</a> <ul class="org-ul"> -<li><a href="#org8aaeeee">Default Formatting</a></li> -<li><a href="#org57a9fa7">Markdown</a></li> -<li><a href="#org8eed4d5">Shell</a></li> -<li><a href="#orgf39dc9b">Python</a></li> +<li><a href="#org1164d5a">Default Formatting</a></li> +<li><a href="#org5573921">Markdown</a></li> +<li><a href="#orgd05bb0c">Shell</a></li> +<li><a href="#org0c28082">Python</a></li> </ul></li> -<li><a href="#org4063dc0">Other Settings</a> +<li><a href="#orgde6d74f">Other Settings</a> <ul class="org-ul"> -<li><a href="#orge5efe72">Dired &#x2013; ls dired</a></li> -<li><a href="#org49723f3">Coding System for Terminal</a></li> -<li><a href="#org1e73d1b">Backup Options</a></li> -<li><a href="#org2f9e87f">Set Browser</a></li> +<li><a href="#org8c966f6">Dired &#x2013; ls dired</a></li> +<li><a href="#orgb2871d8">Coding System for Terminal</a></li> +<li><a href="#org78d77d0">Backup Options</a></li> +<li><a href="#orgdc99eff">Set Browser</a></li> </ul></li> -<li><a href="#orgd252230">Notes</a> +<li><a href="#orge5f3801">Notes</a> <ul class="org-ul"> -<li><a href="#orgdc69ec3">Reverting to package.el</a></li> +<li><a href="#org4760904">Reverting to package.el</a></li> </ul></li> </ul> </div> </div> -<div id="outline-container-org9dc3333" class="outline-2"> -<h2 id="org9dc3333"><span class="section-number-2">2</span> Intro</h2> +<div id="outline-container-org5369497" class="outline-2"> +<h2 id="org5369497"><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-org110c774" class="outline-3"> -<h3 id="org110c774"><span class="section-number-3">2.1</span> Installation Instructions</h3> +<div id="outline-container-orgcf79123" class="outline-3"> +<h3 id="orgcf79123"><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-org00a463e" class="outline-3"> -<h3 id="org00a463e"><span class="section-number-3">2.2</span> Ignoring init.el changes on Git</h3> +<div id="outline-container-org0878513" class="outline-3"> +<h3 id="org0878513"><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-org3f2b602" class="outline-3"> -<h3 id="org3f2b602"><span class="section-number-3">2.3</span> Meta</h3> +<div id="outline-container-org3fd88b4" class="outline-3"> +<h3 id="org3fd88b4"><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-org3f7639b" class="outline-3"> -<h3 id="org3f7639b"><span class="section-number-3">2.4</span> Attribution</h3> +<div id="outline-container-org56945ca" class="outline-3"> +<h3 id="org56945ca"><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-org81acaca" class="outline-2"> -<h2 id="org81acaca"><span class="section-number-2">3</span> Startup Settings</h2> +<div id="outline-container-orga5a78f6" class="outline-2"> +<h2 id="orga5a78f6"><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-orgea6f950" class="outline-3"> -<h3 id="orgea6f950"><span class="section-number-3">3.1</span> Declutter</h3> +<div id="outline-container-orgae2047d" class="outline-3"> +<h3 id="orgae2047d"><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-org0b67b73" class="outline-3"> -<h3 id="org0b67b73"><span class="section-number-3">3.2</span> Package management</h3> +<div id="outline-container-org3c6b505" class="outline-3"> +<h3 id="org3c6b505"><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. @@ -445,8 +445,8 @@ to install itself. </div> </div> -<div id="outline-container-org87ca4a1" class="outline-4"> -<h4 id="org87ca4a1"><span class="section-number-4">3.2.1</span> use-package</h4> +<div id="outline-container-org0814efd" class="outline-4"> +<h4 id="org0814efd"><span class="section-number-4">3.2.1</span> use-package</h4> <div class="outline-text-4" id="text-3-2-1"> <p> We need use-package for maintaining other packages. @@ -454,14 +454,15 @@ We need use-package for maintaining other packages. <div class="org-src-container"> <pre class="src src-emacs-lisp">(straight-use-package 'use-package) +(<span style="color: #51afef;">require</span> '<span style="color: #a991f1;">use-package</span>) </pre> </div> </div> </div> </div> -<div id="outline-container-org0e741b5" class="outline-3"> -<h3 id="org0e741b5"><span class="section-number-3">3.3</span> Custom-file</h3> +<div id="outline-container-orgd8b01a5" class="outline-3"> +<h3 id="orgd8b01a5"><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 @@ -485,8 +486,8 @@ Let's load the custom-file if it is there </div> </div> -<div id="outline-container-org371f4bc" class="outline-3"> -<h3 id="org371f4bc"><span class="section-number-3">3.4</span> Private file</h3> +<div id="outline-container-org735ac6b" class="outline-3"> +<h3 id="org735ac6b"><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 @@ -502,15 +503,15 @@ Let's load a private file if it exists </div> </div> </div> -<div id="outline-container-org1b8bded" class="outline-3"> -<h3 id="org1b8bded"><span class="section-number-3">3.5</span> Starting the server</h3> +<div id="outline-container-org98af7b2" class="outline-3"> +<h3 id="org98af7b2"><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="org6598694"><span style="color: #62686E;">#</span><span style="color: #62686E;">!/bin/</span><span style="color: #51afef;">sh</span> +<pre class="src src-sh" id="org00aa6a9"><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> @@ -544,8 +545,8 @@ You can install the generated emc script by doing </div> </div> -<div id="outline-container-orgc212256" class="outline-2"> -<h2 id="orgc212256"><span class="section-number-2">4</span> Packages</h2> +<div id="outline-container-org10cc32a" class="outline-2"> +<h2 id="org10cc32a"><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 @@ -553,8 +554,8 @@ to how important they are to me. </p> </div> -<div id="outline-container-org4835267" class="outline-3"> -<h3 id="org4835267"><span class="section-number-3">4.1</span> Evil-mode</h3> +<div id="outline-container-org3338e06" class="outline-3"> +<h3 id="org3338e06"><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 @@ -591,8 +592,8 @@ We didn't ask for the keybindings yet, because we are going to get the </div> </div> -<div id="outline-container-orgf298744" class="outline-4"> -<h4 id="orgf298744"><span class="section-number-4">4.1.1</span> evil-surround</h4> +<div id="outline-container-org477ea6c" class="outline-4"> +<h4 id="org477ea6c"><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 @@ -612,32 +613,74 @@ do the job well for me. </div> </div> -<div id="outline-container-orgdfc2537" class="outline-3"> -<h3 id="orgdfc2537"><span class="section-number-3">4.2</span> Org-mode</h3> +<div id="outline-container-orgcffb2ed" class="outline-3"> +<h3 id="orgcffb2ed"><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="#org3f7639b">2.4</a> section. +the <a href="#org56945ca">2.4</a> section. </p> <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">org</span> <span style="color: #C57BDB;">:straight</span> t +<span style="color: #C57BDB;">:requires</span> (ox-md ox-man) +<span style="color: #C57BDB;">:defines</span> personal-keybindings <span style="color: #C57BDB;">:functions</span> org-babel-tangle -<span style="color: #C57BDB;">:init</span> -'(<span style="color: #51afef;">require</span> '<span style="color: #a991f1;">ox-md</span> nil t) -'(<span style="color: #51afef;">require</span> '<span style="color: #a991f1;">ox-man</span> nil t) -'(org-export-backends +<span style="color: #C57BDB;">:bind</span> ((<span style="color: #7bc275;">"C-c l"</span> . org-store-link) + (<span style="color: #7bc275;">"C-c a"</span> . org-agenda) + (<span style="color: #7bc275;">"C-c c"</span> . org-capture)) +<span style="color: #C57BDB;">:custom</span> +(org-directory <span style="color: #7bc275;">"~/Org/"</span>) +(org-agende-include-diary t) +(org-default-notes-file <span style="color: #7bc275;">"~/Org/refile.org"</span>) +(org-agenda-span 'day) +(org-todo-keywords (<span style="color: #51afef;">quote</span> ((sequence <span style="color: #7bc275;">"TODO(t)"</span> <span style="color: #7bc275;">"NEXT(n)"</span> <span style="color: #7bc275;">"|"</span> <span style="color: #7bc275;">"DONE(d)"</span>) + (sequence <span style="color: #7bc275;">"WAITING(w@/!)"</span> <span style="color: #7bc275;">"HOLD(h@/!)"</span> <span style="color: #7bc275;">"|"</span> <span style="color: #7bc275;">"CANCELLED(c@/!)"</span> <span style="color: #7bc275;">"PHONE"</span> <span style="color: #7bc275;">"MEETING"</span>)))) +(org-use-fast-todo-selection t) +(org-refile-targets (<span style="color: #51afef;">quote</span> ((nil <span style="color: #C57BDB;">:maxlevel</span> . 9) + (org-agenda-files <span style="color: #C57BDB;">:maxlevel</span> . 9)))) +(org-refile-use-outline-path t) +(org-outline-path-complete-in-steps nil) +(org-refile-allow-creating-parent-nodes (<span style="color: #51afef;">quote</span> confirm)) +(org-capture-templates + (<span style="color: #51afef;">quote</span> ((<span style="color: #7bc275;">"t"</span> <span style="color: #7bc275;">"todo"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* TODO %?\n%U\n%a\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) + (<span style="color: #7bc275;">"r"</span> <span style="color: #7bc275;">"respond"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t <span style="color: #C57BDB;">:immediate-finish</span> t) + (<span style="color: #7bc275;">"n"</span> <span style="color: #7bc275;">"note"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* %? :NOTE:\n%U\n%a\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) + (<span style="color: #7bc275;">"j"</span> <span style="color: #7bc275;">"Journal"</span> entry (file+datetree <span style="color: #7bc275;">"~/Org/diary.org"</span>) + <span style="color: #7bc275;">"* %?\n%U\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) + (<span style="color: #7bc275;">"w"</span> <span style="color: #7bc275;">"org-protocol"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* TODO Review %c\n%U\n"</span> <span style="color: #C57BDB;">:immediate-finish</span> t) + (<span style="color: #7bc275;">"m"</span> <span style="color: #7bc275;">"Meeting"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* MEETING with %? :MEETING:\n%U"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) + (<span style="color: #7bc275;">"p"</span> <span style="color: #7bc275;">"Phone call"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* PHONE %? :PHONE:\n%U"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) + (<span style="color: #7bc275;">"h"</span> <span style="color: #7bc275;">"Habit"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) + <span style="color: #7bc275;">"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%&lt;&lt;%Y-%m-%d %a .+1d/3d&gt;&gt;\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"</span>)))) +(org-todo-keyword-faces + (<span style="color: #51afef;">quote</span> ((<span style="color: #7bc275;">"TODO"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"orange red"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"NEXT"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"cyan"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"DONE"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"WAITING"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"orange"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"HOLD"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"hot pink"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"CANCELLED"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"MEETING"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold) + (<span style="color: #7bc275;">"PHONE"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold)))) +(org-export-backends (<span style="color: #51afef;">quote</span> (ascii beamer html latex man md groff)))) + </pre> </div> </div> -<div id="outline-container-org7220ae8" class="outline-4"> -<h4 id="org7220ae8"><span class="section-number-4">4.2.1</span> evil-org</h4> +<div id="outline-container-org8da62ff" class="outline-4"> +<h4 id="org8da62ff"><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. @@ -662,101 +705,10 @@ further. </p> </div> </div> - -<div id="outline-container-org438071a" class="outline-4"> -<h4 id="org438071a"><span class="section-number-4">4.2.2</span> Keybindings and default values</h4> -<div class="outline-text-4" id="text-4-2-2"> -<div class="org-src-container"> -<pre class="src src-emacs-lisp">(global-set-key (kbd <span style="color: #7bc275;">"C-c l"</span>) 'org-store-link) -(global-set-key (kbd <span style="color: #7bc275;">"C-c a"</span>) 'org-agenda) -(global-set-key (kbd <span style="color: #7bc275;">"C-c c"</span>) 'org-capture) - -(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">org-directory</span>) -(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">org-agenda-include-diary</span>) -(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">org-default-notes-file</span>) - -(<span style="color: #51afef;">setq</span> - org-directory <span style="color: #7bc275;">"~/Org/"</span> - org-agenda-include-diary t - org-default-notes-file <span style="color: #7bc275;">"~/Org/refile.org"</span> -) - -(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">org-agenda-span</span>) -(<span style="color: #51afef;">setq</span> org-agenda-span 'day) -</pre> -</div> -</div> </div> -<div id="outline-container-org93b874a" class="outline-4"> -<h4 id="org93b874a"><span class="section-number-4">4.2.3</span> Orgmode TODO configuration</h4> -<div class="outline-text-4" id="text-4-2-3"> -<p> -Code below is written for adding more possible sequences depending on the -project I am working on. -</p> - -<div class="org-src-container"> -<pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq</span> org-todo-keywords - (<span style="color: #51afef;">quote</span> ((sequence <span style="color: #7bc275;">"TODO(t)"</span> <span style="color: #7bc275;">"NEXT(n)"</span> <span style="color: #7bc275;">"|"</span> <span style="color: #7bc275;">"DONE(d)"</span>) - (sequence <span style="color: #7bc275;">"WAITING(w@/!)"</span> <span style="color: #7bc275;">"HOLD(h@/!)"</span> <span style="color: #7bc275;">"|"</span> <span style="color: #7bc275;">"CANCELLED(c@/!)"</span> <span style="color: #7bc275;">"PHONE"</span> <span style="color: #7bc275;">"MEETING"</span>)))) - -(<span style="color: #51afef;">setq</span> org-todo-keyword-faces - (<span style="color: #51afef;">quote</span> ((<span style="color: #7bc275;">"TODO"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"orange red"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"NEXT"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"cyan"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"DONE"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"WAITING"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"orange"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"HOLD"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"hot pink"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"CANCELLED"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"MEETING"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold) - (<span style="color: #7bc275;">"PHONE"</span> <span style="color: #C57BDB;">:foreground</span> <span style="color: #7bc275;">"spring green"</span> <span style="color: #C57BDB;">:weight</span> bold)))) - -(<span style="color: #51afef;">setq</span> org-use-fast-todo-selection t) -</pre> -</div> -</div> -</div> -<div id="outline-container-org5f07dfd" class="outline-4"> -<h4 id="org5f07dfd"><span class="section-number-4">4.2.4</span> Org-capture and refiling</h4> -<div class="outline-text-4" id="text-4-2-4"> -<div class="org-src-container"> -<pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq</span> org-capture-templates - (<span style="color: #51afef;">quote</span> ((<span style="color: #7bc275;">"t"</span> <span style="color: #7bc275;">"todo"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* TODO %?\n%U\n%a\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) - (<span style="color: #7bc275;">"r"</span> <span style="color: #7bc275;">"respond"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t <span style="color: #C57BDB;">:immediate-finish</span> t) - (<span style="color: #7bc275;">"n"</span> <span style="color: #7bc275;">"note"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* %? :NOTE:\n%U\n%a\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) - (<span style="color: #7bc275;">"j"</span> <span style="color: #7bc275;">"Journal"</span> entry (file+datetree <span style="color: #7bc275;">"~/Org/diary.org"</span>) - <span style="color: #7bc275;">"* %?\n%U\n"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) - (<span style="color: #7bc275;">"w"</span> <span style="color: #7bc275;">"org-protocol"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* TODO Review %c\n%U\n"</span> <span style="color: #C57BDB;">:immediate-finish</span> t) - (<span style="color: #7bc275;">"m"</span> <span style="color: #7bc275;">"Meeting"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* MEETING with %? :MEETING:\n%U"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) - (<span style="color: #7bc275;">"p"</span> <span style="color: #7bc275;">"Phone call"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* PHONE %? :PHONE:\n%U"</span> <span style="color: #C57BDB;">:clock-in</span> t <span style="color: #C57BDB;">:clock-resume</span> t) - (<span style="color: #7bc275;">"h"</span> <span style="color: #7bc275;">"Habit"</span> entry (file <span style="color: #7bc275;">"~/Org/refile.org"</span>) - <span style="color: #7bc275;">"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%&lt;&lt;%Y-%m-%d %a .+1d/3d&gt;&gt;\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"</span>)))) -</pre> -</div> - -<p> -Let's set targets to <code>org-agenda-files</code>. -</p> -<div class="org-src-container"> -<pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq</span> org-refile-targets (<span style="color: #51afef;">quote</span> ((nil <span style="color: #C57BDB;">:maxlevel</span> . 9) - (org-agenda-files <span style="color: #C57BDB;">:maxlevel</span> . 9)))) - -(<span style="color: #51afef;">setq</span> org-refile-use-outline-path t) -(<span style="color: #51afef;">setq</span> org-outline-path-complete-in-steps nil) -(<span style="color: #51afef;">setq</span> org-refile-allow-creating-parent-nodes (<span style="color: #51afef;">quote</span> confirm)) -</pre> -</div> -</div> -</div> -</div> -<div id="outline-container-org205dfa5" class="outline-3"> -<h3 id="org205dfa5"><span class="section-number-3">4.3</span> Magit</h3> +<div id="outline-container-orgf783bc2" class="outline-3"> +<h3 id="orgf783bc2"><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 @@ -767,14 +719,13 @@ along with it. <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">magit</span> <span style="color: #C57BDB;">:straight</span> t - <span style="color: #C57BDB;">:config</span> - (global-set-key (kbd <span style="color: #7bc275;">"C-x g"</span>) 'magit-status)) + <span style="color: #C57BDB;">:bind</span> (<span style="color: #7bc275;">"C-x g"</span> . magit-status)) </pre> </div> </div> -<div id="outline-container-org21ba9ef" class="outline-4"> -<h4 id="org21ba9ef"><span class="section-number-4">4.3.1</span> evil-magit</h4> +<div id="outline-container-org6e1a3ec" class="outline-4"> +<h4 id="org6e1a3ec"><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> @@ -787,8 +738,8 @@ along with it. </div> </div> -<div id="outline-container-org167ef45" class="outline-3"> -<h3 id="org167ef45"><span class="section-number-3">4.4</span> Flycheck</h3> +<div id="outline-container-orgde8420f" class="outline-3"> +<h3 id="orgde8420f"><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 @@ -807,8 +758,8 @@ hacky and buggy on Vim. </div> </div> -<div id="outline-container-org0552f83" class="outline-3"> -<h3 id="org0552f83"><span class="section-number-3">4.5</span> Company Mode</h3> +<div id="outline-container-org7dedeec" class="outline-3"> +<h3 id="org7dedeec"><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 @@ -819,15 +770,15 @@ much yet. Pretty simple config. <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">company</span> <span style="color: #C57BDB;">:straight</span> t - <span style="color: #C57BDB;">:config</span> (global-company-mode 1) - (<span style="color: #51afef;">setq</span> company-idle-delay 0) - (<span style="color: #51afef;">setq</span> company-minimum-prefix-length 1)) + <span style="color: #C57BDB;">:custom</span> (company-idle-delay 1) + (company-minimum-prefix-length 1) + <span style="color: #C57BDB;">:config</span> (global-company-mode 1)) </pre> </div> </div> -<div id="outline-container-org7b4334a" class="outline-4"> -<h4 id="org7b4334a"><span class="section-number-4">4.5.1</span> Company LSP</h4> +<div id="outline-container-org9cf88a7" class="outline-4"> +<h4 id="org9cf88a7"><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 @@ -846,42 +797,42 @@ far as I can wrap my head-around. </div> </div> -<div id="outline-container-org21c2bac" class="outline-3"> -<h3 id="org21c2bac"><span class="section-number-3">4.6</span> Mingus</h3> +<div id="outline-container-orgbcc5271" class="outline-3"> +<h3 id="orgbcc5271"><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 simple, straightforward interface. </p> <div class="org-src-container"> -<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">mingus</span> <span style="color: #C57BDB;">:straight</span> t) -(global-set-key (kbd <span style="color: #7bc275;">"C-c m"</span>) 'mingus) +<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">mingus</span> + <span style="color: #C57BDB;">:straight</span> t + <span style="color: #C57BDB;">:bind</span> (<span style="color: #7bc275;">"C-c m"</span> . mingus)) </pre> </div> </div> </div> -<div id="outline-container-orgaebe008" class="outline-3"> -<h3 id="orgaebe008"><span class="section-number-3">4.7</span> Projectile</h3> +<div id="outline-container-orgd39743f" class="outline-3"> +<h3 id="orgd39743f"><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> <span style="color: #C57BDB;">:straight</span> t - <span style="color: #C57BDB;">:init</span> (projectile-mode +1) - (define-key projectile-mode-map (kbd <span style="color: #7bc275;">"C-c p"</span>) 'projectile-command-map)) + <span style="color: #C57BDB;">:bind-keymap</span> (<span style="color: #7bc275;">"C-c p"</span> . projectile-command-map) + <span style="color: #C57BDB;">:config</span> (projectile-mode +1)) </pre> </div> </div> </div> -<div id="outline-container-org3aae1ad" class="outline-3"> -<h3 id="org3aae1ad"><span class="section-number-3">4.8</span> Treemacs</h3> +<div id="outline-container-org2b34757" class="outline-3"> +<h3 id="org2b34757"><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> <span style="color: #C57BDB;">:straight</span> t <span style="color: #C57BDB;">:defines</span> treemacs-no-png-images - <span style="color: #C57BDB;">:init</span> - (global-set-key (kbd <span style="color: #7bc275;">"C-c t"</span>) 'treemacs) - (<span style="color: #51afef;">setq</span> treemacs-no-png-images t)) + <span style="color: #C57BDB;">:bind</span> (<span style="color: #7bc275;">"C-c t"</span> . treemacs) + <span style="color: #C57BDB;">:custom</span> (treemacs-no-png-images t)) (<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">treemacs-evil</span> <span style="color: #C57BDB;">:straight</span> t @@ -902,7 +853,7 @@ simple, straightforward interface. </div> <ol class="org-ol"> -<li><a id="org3811989"></a>Keybindings<br /> +<li><a id="org078f070"></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> @@ -1011,35 +962,34 @@ These tables are taken from the <a href="https://github.com/Alexander-Miller/tre </ol> </div> -<div id="outline-container-org2632797" class="outline-3"> -<h3 id="org2632797"><span class="section-number-3">4.9</span> emacs-dashboard</h3> +<div id="outline-container-orgf5d3ae8" class="outline-3"> +<h3 id="orgf5d3ae8"><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> <span style="color: #C57BDB;">:straight</span> t - <span style="color: #C57BDB;">:defines</span> show-week-agenda-p - <span style="color: #C57BDB;">:init</span> - (<span style="color: #51afef;">setq</span> dashboard-center-content t) - (<span style="color: #51afef;">setq</span> show-week-agenda-p nil) - (<span style="color: #51afef;">setq</span> dashboard-set-footer nil) - (<span style="color: #51afef;">setq</span> initial-buffer-choice (<span style="color: #51afef;">lambda</span> () (get-buffer <span style="color: #7bc275;">"*dashboard*"</span>))) - (<span style="color: #51afef;">setq</span> dashboard-items '((agenda . 10) - (projects . 5))) + <span style="color: #C57BDB;">:custom</span> + (dashboard-center-content t) + (show-week-agenda-p nil) + (dashboard-set-footer nil) + (initial-buffer-choice (<span style="color: #51afef;">lambda</span> () (get-buffer <span style="color: #7bc275;">"*dashboard*"</span>))) + (dashboard-items '((agenda . 10) + (projects . 5))) <span style="color: #C57BDB;">:config</span> (dashboard-setup-startup-hook)) </pre> </div> </div> </div> -<div id="outline-container-orge2f9ffe" class="outline-3"> -<h3 id="orge2f9ffe"><span class="section-number-3">4.10</span> Extras</h3> +<div id="outline-container-org9a59c8c" class="outline-3"> +<h3 id="org9a59c8c"><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-org2685a4f" class="outline-4"> -<h4 id="org2685a4f"><span class="section-number-4">4.10.1</span> sudo-edit</h4> +<div id="outline-container-orgd09fd32" class="outline-4"> +<h4 id="orgd09fd32"><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. @@ -1052,8 +1002,8 @@ This is a package for re-initiating a file as root. </div> </div> -<div id="outline-container-org86f33e6" class="outline-4"> -<h4 id="org86f33e6"><span class="section-number-4">4.10.2</span> linum-relative</h4> +<div id="outline-container-org4a61b4d" class="outline-4"> +<h4 id="org4a61b4d"><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 @@ -1072,8 +1022,8 @@ the other lines. </div> </div> -<div id="outline-container-org1b6c8e6" class="outline-4"> -<h4 id="org1b6c8e6"><span class="section-number-4">4.10.3</span> elfeed</h4> +<div id="outline-container-org58b0e5b" class="outline-4"> +<h4 id="org58b0e5b"><span class="section-number-4">4.10.3</span> elfeed</h4> <div class="outline-text-4" id="text-4-10-3"> <p> I have elfeed which I have connected to my Nextcloud account, it @@ -1087,8 +1037,8 @@ is nice to have something synced. </div> </div> -<div id="outline-container-orgba1aabd" class="outline-4"> -<h4 id="orgba1aabd"><span class="section-number-4">4.10.4</span> markdown-mode</h4> +<div id="outline-container-org1405c17" class="outline-4"> +<h4 id="org1405c17"><span class="section-number-4">4.10.4</span> markdown-mode</h4> <div class="outline-text-4" id="text-4-10-4"> <p> I sometimes use this to test the HTML output of markdown documents @@ -1104,8 +1054,8 @@ that I write. </div> </div> -<div id="outline-container-org7560f3b" class="outline-4"> -<h4 id="org7560f3b"><span class="section-number-4">4.10.5</span> htmlize</h4> +<div id="outline-container-org465afd0" class="outline-4"> +<h4 id="org465afd0"><span class="section-number-4">4.10.5</span> htmlize</h4> <div class="outline-text-4" id="text-4-10-5"> <p> I sometimes output html from org-mode as it comes handy. We use htmlize for @@ -1119,8 +1069,8 @@ that. </div> </div> -<div id="outline-container-orgad99356" class="outline-4"> -<h4 id="orgad99356"><span class="section-number-4">4.10.6</span> toc-org</h4> +<div id="outline-container-org6db7e3c" class="outline-4"> +<h4 id="org6db7e3c"><span class="section-number-4">4.10.6</span> toc-org</h4> <div class="outline-text-4" id="text-4-10-6"> <p> I want to have a basic table-of-contents generation on my org-files @@ -1140,8 +1090,8 @@ Github README. </div> </div> -<div id="outline-container-orgcaa5347" class="outline-2"> -<h2 id="orgcaa5347"><span class="section-number-2">5</span> Themes and Icons</h2> +<div id="outline-container-orgeb25b1a" class="outline-2"> +<h2 id="orgeb25b1a"><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 @@ -1150,14 +1100,18 @@ time. </p> </div> -<div id="outline-container-org3cd7d29" class="outline-4"> -<h4 id="org3cd7d29"><span class="section-number-4">5.0.1</span> Doom themes</h4> +<div id="outline-container-orgaee2751" class="outline-4"> +<h4 id="orgaee2751"><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 Dracula someday as well). </p> +<p> +The 'if' statement makes sure we have +</p> + <div class="org-src-container"> <pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">doom-themes</span> <span style="color: #C57BDB;">:after</span> all-the-icons @@ -1178,8 +1132,8 @@ Dracula someday as well). </div> </div> -<div id="outline-container-org6fbe2a7" class="outline-4"> -<h4 id="org6fbe2a7"><span class="section-number-4">5.0.2</span> All the icons</h4> +<div id="outline-container-org2679980" class="outline-4"> +<h4 id="org2679980"><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 @@ -1194,8 +1148,8 @@ guess. Pretty straightforward. </div> </div> </div> -<div id="outline-container-org3e89807" class="outline-2"> -<h2 id="org3e89807"><span class="section-number-2">6</span> Filetype Configurations</h2> +<div id="outline-container-org2a454fa" class="outline-2"> +<h2 id="org2a454fa"><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 @@ -1203,8 +1157,8 @@ are for indents and spaces, mostly. </p> </div> -<div id="outline-container-org8aaeeee" class="outline-3"> -<h3 id="org8aaeeee"><span class="section-number-3">6.1</span> Default Formatting</h3> +<div id="outline-container-org1164d5a" class="outline-3"> +<h3 id="org1164d5a"><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 @@ -1220,8 +1174,8 @@ so I avoid them wherever I can. </div> </div> -<div id="outline-container-org57a9fa7" class="outline-3"> -<h3 id="org57a9fa7"><span class="section-number-3">6.2</span> Markdown</h3> +<div id="outline-container-org5573921" class="outline-3"> +<h3 id="org5573921"><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. @@ -1239,8 +1193,8 @@ For markdown, I want to have 4 spaces as an indentation. </div> </div> -<div id="outline-container-org8eed4d5" class="outline-3"> -<h3 id="org8eed4d5"><span class="section-number-3">6.3</span> Shell</h3> +<div id="outline-container-orgd05bb0c" class="outline-3"> +<h3 id="orgd05bb0c"><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. @@ -1258,8 +1212,8 @@ For shell, I want to have 4 spaces as an indentation. </div> </div> -<div id="outline-container-orgf39dc9b" class="outline-3"> -<h3 id="orgf39dc9b"><span class="section-number-3">6.4</span> Python</h3> +<div id="outline-container-org0c28082" class="outline-3"> +<h3 id="org0c28082"><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 @@ -1267,8 +1221,8 @@ for that as well. </p> </div> -<div id="outline-container-orgfb107ce" class="outline-4"> -<h4 id="orgfb107ce"><span class="section-number-4">6.4.1</span> Company jedi</h4> +<div id="outline-container-org08a2f84" class="outline-4"> +<h4 id="org08a2f84"><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 @@ -1287,8 +1241,8 @@ is the use-package </div> </div> </div> -<div id="outline-container-org4063dc0" class="outline-2"> -<h2 id="org4063dc0"><span class="section-number-2">7</span> Other Settings</h2> +<div id="outline-container-orgde6d74f" class="outline-2"> +<h2 id="orgde6d74f"><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 @@ -1296,8 +1250,8 @@ for me. </p> </div> -<div id="outline-container-orge5efe72" class="outline-3"> -<h3 id="orge5efe72"><span class="section-number-3">7.1</span> Dired &#x2013; ls dired</h3> +<div id="outline-container-org8c966f6" class="outline-3"> +<h3 id="org8c966f6"><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 @@ -1312,8 +1266,8 @@ not have a <code>--dired</code> option. Let's disable it. </div> </div> -<div id="outline-container-org49723f3" class="outline-3"> -<h3 id="org49723f3"><span class="section-number-3">7.2</span> Coding System for Terminal</h3> +<div id="outline-container-orgb2871d8" class="outline-3"> +<h3 id="orgb2871d8"><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. @@ -1324,8 +1278,8 @@ I want emacs to use utf-8 so my terminal isn't filled with '?' characters. </div> </div> </div> -<div id="outline-container-org1e73d1b" class="outline-3"> -<h3 id="org1e73d1b"><span class="section-number-3">7.3</span> Backup Options</h3> +<div id="outline-container-org78d77d0" class="outline-3"> +<h3 id="org78d77d0"><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>))) @@ -1334,8 +1288,8 @@ I want emacs to use utf-8 so my terminal isn't filled with '?' characters. </div> </div> -<div id="outline-container-org2f9e87f" class="outline-3"> -<h3 id="org2f9e87f"><span class="section-number-3">7.4</span> Set Browser</h3> +<div id="outline-container-orgdc99eff" class="outline-3"> +<h3 id="orgdc99eff"><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 @@ -1352,15 +1306,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-orgd252230" class="outline-2"> -<h2 id="orgd252230"><span class="section-number-2">8</span> Notes</h2> +<div id="outline-container-orge5f3801" class="outline-2"> +<h2 id="orge5f3801"><span class="section-number-2">8</span> Notes</h2> <div class="outline-text-2" id="text-8"> </div> -<div id="outline-container-orgdc69ec3" class="outline-3"> -<h3 id="orgdc69ec3"><span class="section-number-3">8.1</span> Reverting to package.el</h3> +<div id="outline-container-org4760904" class="outline-3"> +<h3 id="org4760904"><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="#org0b67b73">3.2</a> +You can always revert back to <code>package.el</code> by replacing the <a href="#org3c6b505">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 @@ -1369,8 +1323,8 @@ about the internals of straight. </p> </div> -<div id="outline-container-orgc287fc8" class="outline-4"> -<h4 id="orgc287fc8"><span class="section-number-4">8.1.1</span> Replacing the bootstrap command</h4> +<div id="outline-container-orgaf67677" class="outline-4"> +<h4 id="orgaf67677"><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 @@ -1398,8 +1352,8 @@ as it works with package.el </div> </div> -<div id="outline-container-org02546d0" class="outline-4"> -<h4 id="org02546d0"><span class="section-number-4">8.1.2</span> Making use-package work with package.el</h4> +<div id="outline-container-orgdbe58ec" class="outline-4"> +<h4 id="orgdbe58ec"><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 @@ -164,6 +164,7 @@ We need use-package for maintaining other packages. #+BEGIN_SRC emacs-lisp (straight-use-package 'use-package) + (require 'use-package) #+END_SRC ** Custom-file @@ -282,13 +283,55 @@ the [[Attribution]] section. #+BEGIN_SRC emacs-lisp (use-package org :straight t + :requires (ox-md ox-man) + :defines personal-keybindings :functions org-babel-tangle - :init - '(require 'ox-md nil t) - '(require 'ox-man nil t) - '(org-export-backends + :bind (("C-c l" . org-store-link) + ("C-c a" . org-agenda) + ("C-c c" . org-capture)) + :custom + (org-directory "~/Org/") + (org-agende-include-diary t) + (org-default-notes-file "~/Org/refile.org") + (org-agenda-span 'day) + (org-todo-keywords (quote ((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)") + (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING")))) + (org-use-fast-todo-selection t) + (org-refile-targets (quote ((nil :maxlevel . 9) + (org-agenda-files :maxlevel . 9)))) + (org-refile-use-outline-path t) + (org-outline-path-complete-in-steps nil) + (org-refile-allow-creating-parent-nodes (quote confirm)) + (org-capture-templates + (quote (("t" "todo" entry (file "~/Org/refile.org") + "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) + ("r" "respond" entry (file "~/Org/refile.org") + "* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t) + ("n" "note" entry (file "~/Org/refile.org") + "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) + ("j" "Journal" entry (file+datetree "~/Org/diary.org") + "* %?\n%U\n" :clock-in t :clock-resume t) + ("w" "org-protocol" entry (file "~/Org/refile.org") + "* TODO Review %c\n%U\n" :immediate-finish t) + ("m" "Meeting" entry (file "~/Org/refile.org") + "* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t) + ("p" "Phone call" entry (file "~/Org/refile.org") + "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t) + ("h" "Habit" entry (file "~/Org/refile.org") + "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n")))) + (org-todo-keyword-faces + (quote (("TODO" :foreground "orange red" :weight bold) + ("NEXT" :foreground "cyan" :weight bold) + ("DONE" :foreground "spring green" :weight bold) + ("WAITING" :foreground "orange" :weight bold) + ("HOLD" :foreground "hot pink" :weight bold) + ("CANCELLED" :foreground "spring green" :weight bold) + ("MEETING" :foreground "spring green" :weight bold) + ("PHONE" :foreground "spring green" :weight bold)))) + (org-export-backends (quote (ascii beamer html latex man md groff)))) + #+END_SRC *** evil-org @@ -310,79 +353,6 @@ I am quite serious on this vim stuff now. I want it everywhere. Now that we have initialized those packages, let's configure them some further. -*** Keybindings and default values - -#+BEGIN_SRC emacs-lisp - (global-set-key (kbd "C-c l") 'org-store-link) - (global-set-key (kbd "C-c a") 'org-agenda) - (global-set-key (kbd "C-c c") 'org-capture) - - (defvar org-directory) - (defvar org-agenda-include-diary) - (defvar org-default-notes-file) - - (setq - org-directory "~/Org/" - org-agenda-include-diary t - org-default-notes-file "~/Org/refile.org" - ) - - (defvar org-agenda-span) - (setq org-agenda-span 'day) -#+END_SRC - -*** Orgmode TODO configuration - -Code below is written for adding more possible sequences depending on the -project I am working on. - -#+BEGIN_SRC emacs-lisp - (setq org-todo-keywords - (quote ((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)") - (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING")))) - - (setq org-todo-keyword-faces - (quote (("TODO" :foreground "orange red" :weight bold) - ("NEXT" :foreground "cyan" :weight bold) - ("DONE" :foreground "spring green" :weight bold) - ("WAITING" :foreground "orange" :weight bold) - ("HOLD" :foreground "hot pink" :weight bold) - ("CANCELLED" :foreground "spring green" :weight bold) - ("MEETING" :foreground "spring green" :weight bold) - ("PHONE" :foreground "spring green" :weight bold)))) - - (setq org-use-fast-todo-selection t) -#+END_SRC -*** Org-capture and refiling -#+BEGIN_SRC emacs-lisp - (setq org-capture-templates - (quote (("t" "todo" entry (file "~/Org/refile.org") - "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) - ("r" "respond" entry (file "~/Org/refile.org") - "* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t) - ("n" "note" entry (file "~/Org/refile.org") - "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) - ("j" "Journal" entry (file+datetree "~/Org/diary.org") - "* %?\n%U\n" :clock-in t :clock-resume t) - ("w" "org-protocol" entry (file "~/Org/refile.org") - "* TODO Review %c\n%U\n" :immediate-finish t) - ("m" "Meeting" entry (file "~/Org/refile.org") - "* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t) - ("p" "Phone call" entry (file "~/Org/refile.org") - "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t) - ("h" "Habit" entry (file "~/Org/refile.org") - "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n")))) -#+END_SRC - -Let's set targets to =org-agenda-files=. -#+BEGIN_SRC emacs-lisp - (setq org-refile-targets (quote ((nil :maxlevel . 9) - (org-agenda-files :maxlevel . 9)))) - - (setq org-refile-use-outline-path t) - (setq org-outline-path-complete-in-steps nil) - (setq org-refile-allow-creating-parent-nodes (quote confirm)) -#+END_SRC ** Magit I like magit, it is quite useful when you don't want to leave emacs and @@ -392,8 +362,7 @@ along with it. #+BEGIN_SRC emacs-lisp (use-package magit :straight t - :config - (global-set-key (kbd "C-x g") 'magit-status)) + :bind ("C-x g" . magit-status)) #+END_SRC *** evil-magit @@ -428,9 +397,9 @@ much yet. Pretty simple config. #+BEGIN_SRC emacs-lisp (use-package company :straight t - :config (global-company-mode 1) - (setq company-idle-delay 0) - (setq company-minimum-prefix-length 1)) + :custom (company-idle-delay 1) + (company-minimum-prefix-length 1) + :config (global-company-mode 1)) #+END_SRC *** Company LSP @@ -450,24 +419,24 @@ far as I can wrap my head-around. Mingus is an [[https://musicpd.org][MPD]] client for the Emacs operating system. It has a rather simple, straightforward interface. #+BEGIN_SRC emacs-lisp - (use-package mingus :straight t) - (global-set-key (kbd "C-c m") 'mingus) + (use-package mingus + :straight t + :bind ("C-c m" . mingus)) #+END_SRC ** Projectile #+BEGIN_SRC emacs-lisp (use-package projectile :straight t - :init (projectile-mode +1) - (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)) + :bind-keymap ("C-c p" . projectile-command-map) + :config (projectile-mode +1)) #+END_SRC ** Treemacs #+BEGIN_SRC emacs-lisp (use-package treemacs :straight t :defines treemacs-no-png-images - :init - (global-set-key (kbd "C-c t") 'treemacs) - (setq treemacs-no-png-images t)) + :bind ("C-c t" . treemacs) + :custom (treemacs-no-png-images t)) (use-package treemacs-evil :straight t @@ -510,14 +479,13 @@ These tables are taken from the [[https://github.com/Alexander-Miller/treemacs][ #+BEGIN_SRC emacs-lisp (use-package dashboard :straight t - :defines show-week-agenda-p - :init - (setq dashboard-center-content t) - (setq show-week-agenda-p nil) - (setq dashboard-set-footer nil) - (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) - (setq dashboard-items '((agenda . 10) - (projects . 5))) + :custom + (dashboard-center-content t) + (show-week-agenda-p nil) + (dashboard-set-footer nil) + (initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) + (dashboard-items '((agenda . 10) + (projects . 5))) :config (dashboard-setup-startup-hook)) #+END_SRC ** Extras @@ -596,6 +564,8 @@ time. I want to use the default doom-theme (perhaps I can switch to Dracula someday as well). +The 'if' statement makes sure we have + #+BEGIN_SRC emacs-lisp (use-package doom-themes :after all-the-icons