commit 878bb95afb86180be0170b01c2ee0e43eb91ddf6
parent 20b067dd32ea3b10bac004ab5090b3ab0986b83a
Author: Cem Keylan <cem@ckyln.com>
Date: Tue, 31 Mar 2020 22:05:34 +0300
remove extra line
Diffstat:
M | init.html | | | 868 | +++++++++++++++++++++++++++++++++++++++++++++---------------------------------- |
M | init.org | | | 1 | - |
2 files changed, 490 insertions(+), 379 deletions(-)
diff --git a/init.html b/init.html
@@ -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>
-<!-- 2020-03-31 Tue 11:51 -->
+<!-- 2020-03-31 Tue 17:45 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Emacs Configuration</title>
@@ -222,64 +222,64 @@
<div id="content">
<h1 class="title">Emacs Configuration</h1>
-<div id="outline-container-org38d8b49" class="outline-2">
-<h2 id="org38d8b49"><span class="section-number-2">1</span> Table of Contents   <span class="tag"><span class="TOC_2_org">TOC_2_org</span></span></h2>
+<div id="outline-container-orge99ded6" class="outline-2">
+<h2 id="orge99ded6"><span class="section-number-2">1</span> Table of Contents   <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="#org889143b">Intro</a>
+<li><a href="#orgea4e9e8">Intro</a>
<ul class="org-ul">
-<li><a href="#org696588f">Installation Instructions</a></li>
-<li><a href="#org15006ae">Ignoring init.el changes on Git</a></li>
-<li><a href="#org486ff6b">Meta</a></li>
-<li><a href="#orgaff74f8">Attribution</a></li>
+<li><a href="#org721c81b">Installation Instructions</a></li>
+<li><a href="#orgcffefc6">Ignoring init.el changes on Git</a></li>
+<li><a href="#orgaaadd09">Meta</a></li>
+<li><a href="#org7ba5981">Attribution</a></li>
</ul></li>
-<li><a href="#org02a2e33">Startup Settings</a>
+<li><a href="#org4e43748">Startup Settings</a>
<ul class="org-ul">
-<li><a href="#org21b2321">Declutter</a></li>
-<li><a href="#orgbe93c8a">Package management</a></li>
-<li><a href="#org08efa3a">Custom-file</a></li>
-<li><a href="#org8659361">Private file</a></li>
-<li><a href="#org65284c7">Diary file</a></li>
-<li><a href="#org502f09d">Starting the server</a></li>
+<li><a href="#org4277926">Declutter</a></li>
+<li><a href="#org2dd03d0">Package management</a></li>
+<li><a href="#orgf4da44e">Custom-file</a></li>
+<li><a href="#org0ed4ab8">Private file</a></li>
+<li><a href="#org829192c">Diary file</a></li>
+<li><a href="#org312f41b">Starting the server</a></li>
</ul></li>
-<li><a href="#orge5ec7a9">Packages</a>
+<li><a href="#org168856d">Packages</a>
<ul class="org-ul">
-<li><a href="#org457d858">Evil-mode</a></li>
-<li><a href="#org0b2e795">Org-mode</a></li>
-<li><a href="#org687533d">Magit</a></li>
-<li><a href="#org5437d0b">Flycheck</a></li>
-<li><a href="#org057d90a">Company Mode</a></li>
-<li><a href="#org6756440">Mingus</a></li>
-<li><a href="#orga5f1dd8">Projectile</a></li>
-<li><a href="#orge4c555c">Treemacs</a></li>
-<li><a href="#org561be12">emacs-dashboard</a></li>
-<li><a href="#org50ad2ba">Extras</a></li>
+<li><a href="#orgfe41e9e">Evil-mode</a></li>
+<li><a href="#org4176a24">Org-mode</a></li>
+<li><a href="#org445303f">Magit</a></li>
+<li><a href="#org23909e3">Flycheck</a></li>
+<li><a href="#org16c4b1e">Company Mode</a></li>
+<li><a href="#org8941a50">Mingus</a></li>
+<li><a href="#org7dec695">Projectile</a></li>
+<li><a href="#orgebaa8fe">Treemacs</a></li>
+<li><a href="#org8953a95">emacs-dashboard</a></li>
+<li><a href="#orgcfe3e0f">Extras</a></li>
</ul></li>
-<li><a href="#orgc7078e4">Themes and Icons</a></li>
-<li><a href="#orgefe4cf9">Filetype Configurations</a>
+<li><a href="#org2e2f48d">Themes and Icons</a></li>
+<li><a href="#org5034cb0">Filetype Configurations</a>
<ul class="org-ul">
-<li><a href="#orgff35f48">Default Formatting</a></li>
-<li><a href="#org1a94d90">Markdown</a></li>
-<li><a href="#orgcda54d0">Shell</a></li>
-<li><a href="#orgdc9f2a6">Python</a></li>
+<li><a href="#org2a8e1fc">Default Formatting</a></li>
+<li><a href="#org503c747">Markdown</a></li>
+<li><a href="#org5162147">Shell</a></li>
+<li><a href="#orgbff8d3f">Python</a></li>
</ul></li>
-<li><a href="#org43f2b13">Other Settings</a>
+<li><a href="#orgcf2c970">Other Settings</a>
<ul class="org-ul">
-<li><a href="#orgbadee03">Dired – ls dired</a></li>
-<li><a href="#orgc955759">Coding System for Terminal</a></li>
-<li><a href="#org566f39f">Backup Options</a></li>
-<li><a href="#orgf7aff98">Set Browser</a></li>
+<li><a href="#org38fb2f4">Dired – ls dired</a></li>
+<li><a href="#orgfea51df">Coding System for Terminal</a></li>
+<li><a href="#orga94271f">Backup Options</a></li>
+<li><a href="#org802e425">Set Browser</a></li>
</ul></li>
-<li><a href="#orgf6bda23">Notes</a>
+<li><a href="#orgdafa680">Notes</a>
<ul class="org-ul">
-<li><a href="#org65479c3">Reverting to package.el</a></li>
+<li><a href="#orga1e9f56">Reverting to package.el</a></li>
</ul></li>
</ul>
</div>
</div>
-<div id="outline-container-org889143b" class="outline-2">
-<h2 id="org889143b"><span class="section-number-2">2</span> Intro</h2>
+<div id="outline-container-orgea4e9e8" class="outline-2">
+<h2 id="orgea4e9e8"><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
@@ -295,8 +295,8 @@ might not want on your own setup.
</p>
</div>
-<div id="outline-container-org696588f" class="outline-3">
-<h3 id="org696588f"><span class="section-number-3">2.1</span> Installation Instructions</h3>
+<div id="outline-container-org721c81b" class="outline-3">
+<h3 id="org721c81b"><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
@@ -304,13 +304,13 @@ to get started. Simply clone the repository and start emacs!
</p>
<div class="org-src-container">
-<pre class="src src-sh"><span style="color: #9ca0a4;"># </span><span style="color: #9ca0a4;">Move your old configuration (if you have one)</span>
-mv $<span style="color: #6a1868;">HOME</span>/.emacs.d $<span style="color: #6a1868;">HOME</span>/.emacs.d.bak
+<pre class="src src-sh"><span style="color: #62686E;"># </span><span style="color: #62686E;">Move your old configuration (if you have one)</span>
+mv $<span style="color: #DFDFDF;">HOME</span>/.emacs.d $<span style="color: #DFDFDF;">HOME</span>/.emacs.d.bak
-<span style="color: #9ca0a4;"># </span><span style="color: #9ca0a4;">Clone the repository</span>
-git clone git://git.ckyln.com/emacs.d $<span style="color: #6a1868;">HOME</span>/.emacs.d
+<span style="color: #62686E;"># </span><span style="color: #62686E;">Clone the repository</span>
+git clone git://git.ckyln.com/emacs.d $<span style="color: #DFDFDF;">HOME</span>/.emacs.d
-<span style="color: #9ca0a4;"># </span><span style="color: #9ca0a4;">Start emacs</span>
+<span style="color: #62686E;"># </span><span style="color: #62686E;">Start emacs</span>
emacs
</pre>
</div>
@@ -323,8 +323,8 @@ emacs after the initial configuration is done.
</div>
</div>
-<div id="outline-container-org15006ae" class="outline-3">
-<h3 id="org15006ae"><span class="section-number-3">2.2</span> Ignoring init.el changes on Git</h3>
+<div id="outline-container-orgcffefc6" class="outline-3">
+<h3 id="orgcffefc6"><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
@@ -339,23 +339,23 @@ this by doing
</div>
</div>
-<div id="outline-container-org486ff6b" class="outline-3">
-<h3 id="org486ff6b"><span class="section-number-3">2.3</span> Meta</h3>
+<div id="outline-container-orgaaadd09" class="outline-3">
+<h3 id="orgaaadd09"><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.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">defun</span> <span style="color: #a626a4;">tangle-init</span> ()
- <span style="color: #84888b; font-style: italic;">"If the current buffer is 'init.org' the code-blocks are</span>
-<span style="color: #84888b; font-style: italic;">tangled, and the tangled file is compiled."</span>
- (<span style="color: #e45649;">when</span> (equal (buffer-file-name)
- (expand-file-name (concat user-emacs-directory <span style="color: #50a14f;">"init.org"</span>)))
- <span style="color: #9ca0a4;">;; </span><span style="color: #9ca0a4;">Avoid running hooks when tangling.</span>
- (<span style="color: #e45649;">let</span> ((prog-mode-hook nil))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">defun</span> <span style="color: #5cEfFF;">tangle-init</span> ()
+ <span style="color: #7e7e87;">"If the current buffer is 'init.org' the code-blocks are</span>
+<span style="color: #7e7e87;">tangled, and the tangled file is compiled."</span>
+ (<span style="color: #51afef;">when</span> (equal (buffer-file-name)
+ (expand-file-name (concat user-emacs-directory <span style="color: #7bc275;">"init.org"</span>)))
+ <span style="color: #62686E;">;; </span><span style="color: #62686E;">Avoid running hooks when tangling.</span>
+ (<span style="color: #51afef;">let</span> ((prog-mode-hook nil))
(org-babel-tangle)
- (byte-compile-file (concat user-emacs-directory <span style="color: #50a14f;">"init.el"</span>)))))
+ (byte-compile-file (concat user-emacs-directory <span style="color: #7bc275;">"init.el"</span>)))))
(add-hook 'after-save-hook 'tangle-init)
</pre>
@@ -363,8 +363,8 @@ To load init.el properly we run a function such as this.
</div>
</div>
-<div id="outline-container-orgaff74f8" class="outline-3">
-<h3 id="orgaff74f8"><span class="section-number-3">2.4</span> Attribution</h3>
+<div id="outline-container-org7ba5981" class="outline-3">
+<h3 id="org7ba5981"><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
@@ -385,8 +385,8 @@ file to manage my Emacs configuration. <a href="https://github.com/larstvei/dot-
</div>
</div>
-<div id="outline-container-org02a2e33" class="outline-2">
-<h2 id="org02a2e33"><span class="section-number-2">3</span> Startup Settings</h2>
+<div id="outline-container-org4e43748" class="outline-2">
+<h2 id="org4e43748"><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
@@ -395,12 +395,12 @@ bars and menus. Also let's disable the splash screen.
</p>
</div>
-<div id="outline-container-org21b2321" class="outline-3">
-<h3 id="org21b2321"><span class="section-number-3">3.1</span> Declutter</h3>
+<div id="outline-container-org4277926" class="outline-3">
+<h3 id="org4277926"><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)
-(<span style="color: #e45649;">setq</span> inhibit-splash-screen t)
+(<span style="color: #51afef;">setq</span> inhibit-splash-screen t)
</pre>
</div>
@@ -411,15 +411,15 @@ defined, and, if they are, will set them to 0.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">when</span> (fboundp 'tool-bar-mode) (tool-bar-mode 0))
-(<span style="color: #e45649;">when</span> (fboundp 'scroll-bar-mode) (scroll-bar-mode 0))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">when</span> (fboundp 'tool-bar-mode) (tool-bar-mode 0))
+(<span style="color: #51afef;">when</span> (fboundp 'scroll-bar-mode) (scroll-bar-mode 0))
</pre>
</div>
</div>
</div>
-<div id="outline-container-orgbe93c8a" class="outline-3">
-<h3 id="orgbe93c8a"><span class="section-number-3">3.2</span> Package management</h3>
+<div id="outline-container-org2dd03d0" class="outline-3">
+<h3 id="org2dd03d0"><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.
@@ -430,14 +430,14 @@ to install itself.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">bootstrap-version</span>)
-(<span style="color: #e45649;">let</span> ((bootstrap-file
- (expand-file-name <span style="color: #50a14f;">"straight/repos/straight.el/bootstrap.el"</span> user-emacs-directory))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">bootstrap-version</span>)
+(<span style="color: #51afef;">let</span> ((bootstrap-file
+ (expand-file-name <span style="color: #7bc275;">"straight/repos/straight.el/bootstrap.el"</span> user-emacs-directory))
(bootstrap-version 5))
- (<span style="color: #e45649;">unless</span> (file-exists-p bootstrap-file)
- (<span style="color: #e45649;">with-current-buffer</span>
+ (<span style="color: #51afef;">unless</span> (file-exists-p bootstrap-file)
+ (<span style="color: #51afef;">with-current-buffer</span>
(url-retrieve-synchronously
- <span style="color: #50a14f;">"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"</span>
+ <span style="color: #7bc275;">"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"</span>
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
@@ -446,8 +446,8 @@ to install itself.
</div>
</div>
-<div id="outline-container-org04c0368" class="outline-4">
-<h4 id="org04c0368"><span class="section-number-4">3.2.1</span> use-package</h4>
+<div id="outline-container-orgde98f19" class="outline-4">
+<h4 id="orgde98f19"><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.
@@ -461,8 +461,8 @@ We need use-package for maintaining other packages.
</div>
</div>
-<div id="outline-container-org08efa3a" class="outline-3">
-<h3 id="org08efa3a"><span class="section-number-3">3.3</span> Custom-file</h3>
+<div id="outline-container-orgf4da44e" class="outline-3">
+<h3 id="orgf4da44e"><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
@@ -470,7 +470,7 @@ my cache folder.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">setq</span> custom-file <span style="color: #50a14f;">"~/.cache/emacs-custom.el"</span>)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq</span> custom-file <span style="color: #7bc275;">"~/.cache/emacs-custom.el"</span>)
</pre>
</div>
@@ -479,15 +479,15 @@ Let's load the custom-file if it is there
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">when</span> (file-exists-p custom-file)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">when</span> (file-exists-p custom-file)
(load custom-file))
</pre>
</div>
</div>
</div>
-<div id="outline-container-org8659361" class="outline-3">
-<h3 id="org8659361"><span class="section-number-3">3.4</span> Private file</h3>
+<div id="outline-container-org0ed4ab8" class="outline-3">
+<h3 id="org0ed4ab8"><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
@@ -495,16 +495,16 @@ Let's load a private file if it exists
<div class="org-src-container">
<pre class="src src-emacs-lisp">(add-hook
'after-init-hook
- (<span style="color: #e45649;">lambda</span> ()
- (<span style="color: #e45649;">let</span> ((private-file (concat user-emacs-directory <span style="color: #50a14f;">"private.el"</span>)))
- (<span style="color: #e45649;">when</span> (file-exists-p private-file)
+ (<span style="color: #51afef;">lambda</span> ()
+ (<span style="color: #51afef;">let</span> ((private-file (concat user-emacs-directory <span style="color: #7bc275;">"private.el"</span>)))
+ (<span style="color: #51afef;">when</span> (file-exists-p private-file)
(load-file private-file)))))
</pre>
</div>
</div>
</div>
-<div id="outline-container-org65284c7" class="outline-3">
-<h3 id="org65284c7"><span class="section-number-3">3.5</span> Diary file</h3>
+<div id="outline-container-org829192c" class="outline-3">
+<h3 id="org829192c"><span class="section-number-3">3.5</span> Diary file</h3>
<div class="outline-text-3" id="text-3-5">
<p>
I use my diary on a Sync directory, so I can share between
@@ -512,32 +512,32 @@ computers.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">diary-file</span>)
-(<span style="color: #e45649;">setq</span> diary-file <span style="color: #50a14f;">"~/Org/agenda/diary"</span>)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">diary-file</span>)
+(<span style="color: #51afef;">setq</span> diary-file <span style="color: #7bc275;">"~/Org/agenda/diary"</span>)
</pre>
</div>
</div>
</div>
-<div id="outline-container-org502f09d" class="outline-3">
-<h3 id="org502f09d"><span class="section-number-3">3.6</span> Starting the server</h3>
+<div id="outline-container-org312f41b" class="outline-3">
+<h3 id="org312f41b"><span class="section-number-3">3.6</span> Starting the server</h3>
<div class="outline-text-3" id="text-3-6">
<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="org651b966"><span style="color: #9ca0a4;">#</span><span style="color: #9ca0a4;">!/bin/</span><span style="color: #e45649;">sh</span>
+<pre class="src src-sh" id="orgf5081e5"><span style="color: #62686E;">#</span><span style="color: #62686E;">!/bin/</span><span style="color: #51afef;">sh</span>
-<span style="color: #6a1868;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #50a14f;">"${EMACSCLIENT_EXTRA_OPTIONS}"</span>
-tty >/dev/null 2>&1 && <span style="color: #6a1868;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #50a14f;">"$EMACSCLIENT_EXTRA_OPTIONS -nw"</span>
+<span style="color: #DFDFDF;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #7bc275;">"${EMACSCLIENT_EXTRA_OPTIONS}"</span>
+tty >/dev/null 2>&1 && <span style="color: #DFDFDF;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #7bc275;">"$EMACSCLIENT_EXTRA_OPTIONS -nw"</span>
-<span style="color: #e45649;">for</span> opt<span style="color: #e45649;"> in</span> <span style="color: #50a14f;">"$@"</span> ; <span style="color: #e45649;">do</span>
- <span style="color: #6a1868;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #50a14f;">"$EMACSCLIENT_EXTRA_OPTIONS $opt"</span>
-<span style="color: #e45649;">done</span>
+<span style="color: #51afef;">for</span> opt<span style="color: #51afef;"> in</span> <span style="color: #7bc275;">"$@"</span> ; <span style="color: #51afef;">do</span>
+ <span style="color: #DFDFDF;">EMACSCLIENT_EXTRA_OPTIONS</span>=<span style="color: #7bc275;">"$EMACSCLIENT_EXTRA_OPTIONS $opt"</span>
+<span style="color: #51afef;">done</span>
-<span style="color: #9ca0a4;"># </span><span style="color: #9ca0a4;">We want word splitting</span>
-<span style="color: #9ca0a4;"># </span><span style="color: #9ca0a4;">shellcheck disable=2086</span>
-emacsclient --alternate-editor=<span style="color: #50a14f;">''</span> -c $<span style="color: #6a1868;">EMACSCLIENT_EXTRA_OPTIONS</span>
+<span style="color: #62686E;"># </span><span style="color: #62686E;">We want word splitting</span>
+<span style="color: #62686E;"># </span><span style="color: #62686E;">shellcheck disable=2086</span>
+emacsclient --alternate-editor=<span style="color: #7bc275;">''</span> -c $<span style="color: #DFDFDF;">EMACSCLIENT_EXTRA_OPTIONS</span>
</pre>
</div>
@@ -551,8 +551,8 @@ You can install the generated emc script by doing
</div>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">require</span> '<span style="color: #b751b6;">server</span>)
-(<span style="color: #e45649;">or</span> (server-running-p)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">require</span> '<span style="color: #a991f1;">server</span>)
+(<span style="color: #51afef;">or</span> (server-running-p)
(server-start))
</pre>
</div>
@@ -560,8 +560,8 @@ You can install the generated emc script by doing
</div>
</div>
-<div id="outline-container-orge5ec7a9" class="outline-2">
-<h2 id="orge5ec7a9"><span class="section-number-2">4</span> Packages</h2>
+<div id="outline-container-org168856d" class="outline-2">
+<h2 id="org168856d"><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
@@ -569,8 +569,8 @@ to how important they are to me.
</p>
</div>
-<div id="outline-container-org457d858" class="outline-3">
-<h3 id="org457d858"><span class="section-number-3">4.1</span> Evil-mode</h3>
+<div id="outline-container-orgfe41e9e" class="outline-3">
+<h3 id="orgfe41e9e"><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
@@ -579,14 +579,14 @@ while I am using Emacs. Let's begin with the evil-mode itself.
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">evil</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:init</span>
- (<span style="color: #e45649;">setq</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">evil</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:init</span>
+ (<span style="color: #51afef;">setq</span>
evil-want-keybinding nil
evil-want-C-i-jump nil
)
- <span style="color: #a626a4;">:config</span>
+ <span style="color: #C57BDB;">:config</span>
(evil-mode 1))
</pre>
</div>
@@ -597,18 +597,18 @@ We didn't ask for the keybindings yet, because we are going to get the
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">evil-collection</span>
- <span style="color: #a626a4;">:requires</span> evil
- <span style="color: #a626a4;">:after</span> evil
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">evil-collection</span>
+ <span style="color: #C57BDB;">:requires</span> evil
+ <span style="color: #C57BDB;">:after</span> evil
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:config</span>
(evil-collection-init))
</pre>
</div>
</div>
-<div id="outline-container-orga262a42" class="outline-4">
-<h4 id="orga262a42"><span class="section-number-4">4.1.1</span> evil-surround</h4>
+<div id="outline-container-org3cbda07" class="outline-4">
+<h4 id="org3cbda07"><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
@@ -616,11 +616,11 @@ do the job well for me.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">evil-surround</span>
- <span style="color: #a626a4;">:requires</span> evil
- <span style="color: #a626a4;">:after</span> evil
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">evil-surround</span>
+ <span style="color: #C57BDB;">:requires</span> evil
+ <span style="color: #C57BDB;">:after</span> evil
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:config</span>
(global-evil-surround-mode 1))
</pre>
</div>
@@ -628,46 +628,46 @@ do the job well for me.
</div>
</div>
-<div id="outline-container-org0b2e795" class="outline-3">
-<h3 id="org0b2e795"><span class="section-number-3">4.2</span> Org-mode</h3>
+<div id="outline-container-org4176a24" class="outline-3">
+<h3 id="org4176a24"><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="#orgaff74f8">2.4</a> section.
+the <a href="#org7ba5981">2.4</a> section.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">org</span>
-<span style="color: #a626a4;">:straight</span> t
-<span style="color: #a626a4;">:functions</span> org-babel-tangle
-<span style="color: #a626a4;">:init</span>
-'(<span style="color: #e45649;">require</span> '<span style="color: #b751b6;">ox-md</span> nil t)
-'(<span style="color: #e45649;">require</span> '<span style="color: #b751b6;">ox-man</span> nil t)
+<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;">: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: #e45649;">quote</span>
+ (<span style="color: #51afef;">quote</span>
(ascii beamer html latex man md groff))))
</pre>
</div>
</div>
-<div id="outline-container-org3f8e1d0" class="outline-4">
-<h4 id="org3f8e1d0"><span class="section-number-4">4.2.1</span> evil-org</h4>
+<div id="outline-container-org8c06e4a" class="outline-4">
+<h4 id="org8c06e4a"><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.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">evil-org</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:requires</span> (evil org)
- <span style="color: #a626a4;">:after</span> (evil org)
- <span style="color: #a626a4;">:functions</span> evil-org-agenda-set-keys
- <span style="color: #a626a4;">:config</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">evil-org</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:requires</span> (evil org)
+ <span style="color: #C57BDB;">:after</span> (evil org)
+ <span style="color: #C57BDB;">:functions</span> evil-org-agenda-set-keys
+ <span style="color: #C57BDB;">:config</span>
(add-hook 'org-mode-hook 'evil-org-mode)
- (<span style="color: #e45649;">require</span> '<span style="color: #b751b6;">evil-org-agenda</span>)
+ (<span style="color: #51afef;">require</span> '<span style="color: #a991f1;">evil-org-agenda</span>)
(evil-org-agenda-set-keys))
</pre>
</div>
@@ -679,33 +679,33 @@ further.
</div>
</div>
-<div id="outline-container-org2b5a53a" class="outline-4">
-<h4 id="org2b5a53a"><span class="section-number-4">4.2.2</span> Keybindings and default values</h4>
+<div id="outline-container-org91901af" class="outline-4">
+<h4 id="org91901af"><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: #50a14f;">"C-c l"</span>) 'org-store-link)
-(global-set-key (kbd <span style="color: #50a14f;">"C-c a"</span>) 'org-agenda)
-(global-set-key (kbd <span style="color: #50a14f;">"C-c c"</span>) 'org-capture)
+<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: #e45649;">defvar</span> <span style="color: #6a1868;">org-directory</span>)
-(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">org-agenda-include-diary</span>)
-(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">org-default-notes-file</span>)
+(<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: #e45649;">setq</span>
- org-directory <span style="color: #50a14f;">"~/Org/"</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: #50a14f;">"~/Org/refile.org"</span>
+ org-default-notes-file <span style="color: #7bc275;">"~/Org/refile.org"</span>
)
-(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">org-agenda-span</span>)
-(<span style="color: #e45649;">setq</span> org-agenda-span 'day)
+(<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-orgfcf19b6" class="outline-4">
-<h4 id="orgfcf19b6"><span class="section-number-4">4.2.3</span> Orgmode TODO configuration</h4>
+<div id="outline-container-orgb6b5ca4" class="outline-4">
+<h4 id="orgb6b5ca4"><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
@@ -713,46 +713,46 @@ project I am working on.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">setq</span> org-todo-keywords
- (<span style="color: #e45649;">quote</span> ((sequence <span style="color: #50a14f;">"TODO(t)"</span> <span style="color: #50a14f;">"NEXT(n)"</span> <span style="color: #50a14f;">"|"</span> <span style="color: #50a14f;">"DONE(d)"</span>)
- (sequence <span style="color: #50a14f;">"WAITING(w@/!)"</span> <span style="color: #50a14f;">"HOLD(h@/!)"</span> <span style="color: #50a14f;">"|"</span> <span style="color: #50a14f;">"CANCELLED(c@/!)"</span> <span style="color: #50a14f;">"PHONE"</span> <span style="color: #50a14f;">"MEETING"</span>))))
-
-(<span style="color: #e45649;">setq</span> org-todo-keyword-faces
- (<span style="color: #e45649;">quote</span> ((<span style="color: #50a14f;">"TODO"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"orange red"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"NEXT"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"cyan"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"DONE"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"spring green"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"WAITING"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"orange"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"HOLD"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"hot pink"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"CANCELLED"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"spring green"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"MEETING"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"spring green"</span> <span style="color: #a626a4;">:weight</span> bold)
- (<span style="color: #50a14f;">"PHONE"</span> <span style="color: #a626a4;">:foreground</span> <span style="color: #50a14f;">"spring green"</span> <span style="color: #a626a4;">:weight</span> bold))))
-
-(<span style="color: #e45649;">setq</span> org-use-fast-todo-selection t)
+<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-org855104f" class="outline-4">
-<h4 id="org855104f"><span class="section-number-4">4.2.4</span> Org-capture and refiling</h4>
+<div id="outline-container-org3b43aaf" class="outline-4">
+<h4 id="org3b43aaf"><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: #e45649;">setq</span> org-capture-templates
- (<span style="color: #e45649;">quote</span> ((<span style="color: #50a14f;">"t"</span> <span style="color: #50a14f;">"todo"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* TODO %?\n%U\n%a\n"</span> <span style="color: #a626a4;">:clock-in</span> t <span style="color: #a626a4;">:clock-resume</span> t)
- (<span style="color: #50a14f;">"r"</span> <span style="color: #50a14f;">"respond"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n"</span> <span style="color: #a626a4;">:clock-in</span> t <span style="color: #a626a4;">:clock-resume</span> t <span style="color: #a626a4;">:immediate-finish</span> t)
- (<span style="color: #50a14f;">"n"</span> <span style="color: #50a14f;">"note"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* %? :NOTE:\n%U\n%a\n"</span> <span style="color: #a626a4;">:clock-in</span> t <span style="color: #a626a4;">:clock-resume</span> t)
- (<span style="color: #50a14f;">"j"</span> <span style="color: #50a14f;">"Journal"</span> entry (file+datetree <span style="color: #50a14f;">"~/Org/diary.org"</span>)
- <span style="color: #50a14f;">"* %?\n%U\n"</span> <span style="color: #a626a4;">:clock-in</span> t <span style="color: #a626a4;">:clock-resume</span> t)
- (<span style="color: #50a14f;">"w"</span> <span style="color: #50a14f;">"org-protocol"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* TODO Review %c\n%U\n"</span> <span style="color: #a626a4;">:immediate-finish</span> t)
- (<span style="color: #50a14f;">"m"</span> <span style="color: #50a14f;">"Meeting"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* MEETING with %? :MEETING:\n%U"</span> <span style="color: #a626a4;">:clock-in</span> t <span style="color: #a626a4;">:clock-resume</span> t)
- (<span style="color: #50a14f;">"p"</span> <span style="color: #50a14f;">"Phone call"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* PHONE %? :PHONE:\n%U"</span> <span style="color: #a626a4;">:clock-in</span> t <span style="color: #a626a4;">:clock-resume</span> t)
- (<span style="color: #50a14f;">"h"</span> <span style="color: #50a14f;">"Habit"</span> entry (file <span style="color: #50a14f;">"~/Org/refile.org"</span>)
- <span style="color: #50a14f;">"* 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"</span>))))
+<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 \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"</span>))))
</pre>
</div>
@@ -760,19 +760,19 @@ project I am working on.
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: #e45649;">setq</span> org-refile-targets (<span style="color: #e45649;">quote</span> ((nil <span style="color: #a626a4;">:maxlevel</span> . 9)
- (org-agenda-files <span style="color: #a626a4;">:maxlevel</span> . 9))))
+<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: #e45649;">setq</span> org-refile-use-outline-path t)
-(<span style="color: #e45649;">setq</span> org-outline-path-complete-in-steps nil)
-(<span style="color: #e45649;">setq</span> org-refile-allow-creating-parent-nodes (<span style="color: #e45649;">quote</span> confirm))
+(<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-org687533d" class="outline-3">
-<h3 id="org687533d"><span class="section-number-3">4.3</span> Magit</h3>
+<div id="outline-container-org445303f" class="outline-3">
+<h3 id="org445303f"><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
@@ -781,30 +781,30 @@ along with it.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">magit</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span>
- (global-set-key (kbd <span style="color: #50a14f;">"C-x g"</span>) 'magit-status))
+<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))
</pre>
</div>
</div>
-<div id="outline-container-org1d6e761" class="outline-4">
-<h4 id="org1d6e761"><span class="section-number-4">4.3.1</span> evil-magit</h4>
+<div id="outline-container-orgc3f4a81" class="outline-4">
+<h4 id="orgc3f4a81"><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: #e45649;">use-package</span> <span style="color: #b751b6;">evil-magit</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:requires</span> (evil magit)
- <span style="color: #a626a4;">:config</span> (evil-magit-init))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">evil-magit</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:requires</span> (evil magit)
+ <span style="color: #C57BDB;">:config</span> (evil-magit-init))
</pre>
</div>
</div>
</div>
</div>
-<div id="outline-container-org5437d0b" class="outline-3">
-<h3 id="org5437d0b"><span class="section-number-3">4.4</span> Flycheck</h3>
+<div id="outline-container-org23909e3" class="outline-3">
+<h3 id="org23909e3"><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
@@ -813,18 +813,18 @@ hacky and buggy on Vim.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">flycheck</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span>
- (<span style="color: #e45649;">setq-default</span> flycheck-disabled-checkers '(emacs-lisp-checkdoc))
- <span style="color: #a626a4;">:init</span> (global-flycheck-mode))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">flycheck</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:config</span>
+ (<span style="color: #51afef;">setq-default</span> flycheck-disabled-checkers '(emacs-lisp-checkdoc))
+ <span style="color: #C57BDB;">:init</span> (global-flycheck-mode))
</pre>
</div>
</div>
</div>
-<div id="outline-container-org057d90a" class="outline-3">
-<h3 id="org057d90a"><span class="section-number-3">4.5</span> Company Mode</h3>
+<div id="outline-container-org16c4b1e" class="outline-3">
+<h3 id="org16c4b1e"><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
@@ -833,17 +833,17 @@ much yet. Pretty simple config.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">company</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span> (global-company-mode 1)
- (<span style="color: #e45649;">setq</span> company-idle-delay 0)
- (<span style="color: #e45649;">setq</span> company-minimum-prefix-length 1))
+<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))
</pre>
</div>
</div>
-<div id="outline-container-org15c5739" class="outline-4">
-<h4 id="org15c5739"><span class="section-number-4">4.5.1</span> Company LSP</h4>
+<div id="outline-container-org0fb11ea" class="outline-4">
+<h4 id="org0fb11ea"><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
@@ -851,117 +851,228 @@ far as I can wrap my head-around.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">company-lsp</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:after</span> company
- <span style="color: #a626a4;">:init</span>
- (<span style="color: #e45649;">push</span> 'company-lsp company-backends))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">company-lsp</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:after</span> company
+ <span style="color: #C57BDB;">:init</span>
+ (<span style="color: #51afef;">push</span> 'company-lsp company-backends))
</pre>
</div>
</div>
</div>
</div>
-<div id="outline-container-org6756440" class="outline-3">
-<h3 id="org6756440"><span class="section-number-3">4.6</span> Mingus</h3>
+<div id="outline-container-org8941a50" class="outline-3">
+<h3 id="org8941a50"><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: #e45649;">use-package</span> <span style="color: #b751b6;">mingus</span> <span style="color: #a626a4;">:straight</span> t)
-(global-set-key (kbd <span style="color: #50a14f;">"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)
+(global-set-key (kbd <span style="color: #7bc275;">"C-c m"</span>) 'mingus)
</pre>
</div>
</div>
</div>
-<div id="outline-container-orga5f1dd8" class="outline-3">
-<h3 id="orga5f1dd8"><span class="section-number-3">4.7</span> Projectile</h3>
+<div id="outline-container-org7dec695" class="outline-3">
+<h3 id="org7dec695"><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: #e45649;">use-package</span> <span style="color: #b751b6;">projectile</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:init</span> (projectile-mode +1)
- (define-key projectile-mode-map (kbd <span style="color: #50a14f;">"C-c p"</span>) 'projectile-command-map))
+<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))
</pre>
</div>
</div>
</div>
-<div id="outline-container-orge4c555c" class="outline-3">
-<h3 id="orge4c555c"><span class="section-number-3">4.8</span> Treemacs</h3>
+<div id="outline-container-orgebaa8fe" class="outline-3">
+<h3 id="orgebaa8fe"><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: #e45649;">use-package</span> <span style="color: #b751b6;">treemacs</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:defines</span> treemacs-no-png-images
- <span style="color: #a626a4;">:init</span>
- (global-set-key (kbd <span style="color: #50a14f;">"C-c t"</span>) 'treemacs)
- (<span style="color: #e45649;">setq</span> treemacs-no-png-images t))
-
-(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">treemacs-evil</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:requires</span> treemacs
- <span style="color: #a626a4;">:after</span> (treemacs evil))
-
-(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">treemacs-magit</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:requires</span> treemacs
- <span style="color: #a626a4;">:after</span> (treemacs magit))
-
-(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">treemacs-projectile</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:requires</span> treemacs
- <span style="color: #a626a4;">:after</span> (treemacs projectile))
+<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: #51afef;">use-package</span> <span style="color: #a991f1;">treemacs-evil</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:requires</span> treemacs
+ <span style="color: #C57BDB;">:after</span> (treemacs evil))
+
+(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">treemacs-magit</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:requires</span> treemacs
+ <span style="color: #C57BDB;">:after</span> (treemacs magit))
+
+(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">treemacs-projectile</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:requires</span> treemacs
+ <span style="color: #C57BDB;">:after</span> (treemacs projectile))
</pre>
</div>
</div>
-</div>
-<div id="outline-container-org561be12" class="outline-3">
-<h3 id="org561be12"><span class="section-number-3">4.9</span> emacs-dashboard</h3>
+
+<ol class="org-ol">
+<li><a id="orgbfff810"></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>
+</p>
+
+
+<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
+
+
+<colgroup>
+<col class="org-left" />
+
+<col class="org-left" />
+
+<col class="org-left" />
+</colgroup>
+<thead>
+<tr>
+<th scope="col" class="org-left">Key</th>
+<th scope="col" class="org-left">Action</th>
+<th scope="col" class="org-left">Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td class="org-left">C-c C-p a</td>
+<td class="org-left">treemacs-add-project-to-workspace</td>
+<td class="org-left">Select a new project to add to the treemacs workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-p p</td>
+<td class="org-left">treemacs-projectile</td>
+<td class="org-left">Select a projectile project to add to the workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-p d</td>
+<td class="org-left">treemacs-remove-project-from-workspace</td>
+<td class="org-left">Remove project at point from the workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-p r</td>
+<td class="org-left">treemacs-rename-project</td>
+<td class="org-left">Rename project at point.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-p c c</td>
+<td class="org-left">treemacs-collapse-project</td>
+<td class="org-left">Collapse project at point.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-p c o/S-TAB</td>
+<td class="org-left">treemacs-collapse-all-projects</td>
+<td class="org-left">Collapse all projects.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-p c o</td>
+<td class="org-left">treemacs-collapse-all-projects</td>
+<td class="org-left">Collapse all projects except the project at point.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-w r</td>
+<td class="org-left">treemacs-rename-workspace</td>
+<td class="org-left">Rename a workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-w a</td>
+<td class="org-left">treemacs-create-workspace</td>
+<td class="org-left">Create a new workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-w d</td>
+<td class="org-left">treemacs-remove-workspace</td>
+<td class="org-left">Delete a workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-w s</td>
+<td class="org-left">treemacs-switch-workspace</td>
+<td class="org-left">Switch the current workspace.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-w e</td>
+<td class="org-left">treemacs-edit-workspaces</td>
+<td class="org-left">Edit workspace layout via org-mode.</td>
+</tr>
+
+<tr>
+<td class="org-left">C-c C-w f</td>
+<td class="org-left">treemacs-set-fallback-workspace</td>
+<td class="org-left">Select the default fallback workspace.</td>
+</tr>
+</tbody>
+</table>
+</div>
+</li>
+</ol>
+</div>
+
+
+<div id="outline-container-org8953a95" class="outline-3">
+<h3 id="org8953a95"><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: #e45649;">use-package</span> <span style="color: #b751b6;">dashboard</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:defines</span> show-week-agenda-p
- <span style="color: #a626a4;">:init</span>
- (<span style="color: #e45649;">setq</span> dashboard-center-content t)
- (<span style="color: #e45649;">setq</span> show-week-agenda-p nil)
- (<span style="color: #e45649;">setq</span> dashboard-set-footer nil)
- (<span style="color: #e45649;">setq</span> initial-buffer-choice (<span style="color: #e45649;">lambda</span> () (get-buffer <span style="color: #50a14f;">"*dashboard*"</span>)))
- (<span style="color: #e45649;">setq</span> dashboard-items '((recents . 5)
+<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 '((recents . 5)
(bookmarks . 5)
(projects . 5)
(agenda . 10)))
- <span style="color: #a626a4;">:config</span> (dashboard-setup-startup-hook))
+ <span style="color: #C57BDB;">:config</span> (dashboard-setup-startup-hook))
</pre>
</div>
</div>
</div>
-<div id="outline-container-org50ad2ba" class="outline-3">
-<h3 id="org50ad2ba"><span class="section-number-3">4.10</span> Extras</h3>
+<div id="outline-container-orgcfe3e0f" class="outline-3">
+<h3 id="orgcfe3e0f"><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-org25e14c7" class="outline-4">
-<h4 id="org25e14c7"><span class="section-number-4">4.10.1</span> sudo-edit</h4>
+<div id="outline-container-orgfc5a54d" class="outline-4">
+<h4 id="orgfc5a54d"><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.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">sudo-edit</span> <span style="color: #a626a4;">:straight</span> t)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">sudo-edit</span> <span style="color: #C57BDB;">:straight</span> t)
</pre>
</div>
</div>
</div>
-<div id="outline-container-orgfb48e9a" class="outline-4">
-<h4 id="orgfb48e9a"><span class="section-number-4">4.10.2</span> linum-relative</h4>
+<div id="outline-container-org446d6e2" class="outline-4">
+<h4 id="org446d6e2"><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
@@ -969,19 +1080,19 @@ the other lines.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">linum-relative</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:init</span>
- (<span style="color: #e45649;">setq</span> linum-relative-current-symbol <span style="color: #50a14f;">""</span>)
- (global-set-key (kbd <span style="color: #50a14f;">"C-C r"</span>) 'linum-relative-mode)
- <span style="color: #a626a4;">:config</span> (linum-relative-mode 1))
+<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;">:init</span>
+ (<span style="color: #51afef;">setq</span> linum-relative-current-symbol <span style="color: #7bc275;">""</span>)
+ (global-set-key (kbd <span style="color: #7bc275;">"C-C r"</span>) 'linum-relative-mode)
+ <span style="color: #C57BDB;">:config</span> (linum-relative-mode 1))
</pre>
</div>
</div>
</div>
-<div id="outline-container-org8c43ed1" class="outline-4">
-<h4 id="org8c43ed1"><span class="section-number-4">4.10.3</span> elfeed</h4>
+<div id="outline-container-org5e9842a" class="outline-4">
+<h4 id="org5e9842a"><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
@@ -989,14 +1100,14 @@ is nice to have something synced.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">elfeed</span> <span style="color: #a626a4;">:straight</span> t)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">elfeed</span> <span style="color: #C57BDB;">:straight</span> t)
</pre>
</div>
</div>
</div>
-<div id="outline-container-org55a548f" class="outline-4">
-<h4 id="org55a548f"><span class="section-number-4">4.10.4</span> markdown-mode</h4>
+<div id="outline-container-org7bc2b89" class="outline-4">
+<h4 id="org7bc2b89"><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
@@ -1004,16 +1115,16 @@ that I write.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">markdown-mode</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span> (<span style="color: #e45649;">setq</span> markdown-command <span style="color: #50a14f;">"/usr/bin/markdown"</span>))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">markdown-mode</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:config</span> (<span style="color: #51afef;">setq</span> markdown-command <span style="color: #7bc275;">"/usr/bin/markdown"</span>))
</pre>
</div>
</div>
</div>
-<div id="outline-container-org8c9ac7e" class="outline-4">
-<h4 id="org8c9ac7e"><span class="section-number-4">4.10.5</span> htmlize</h4>
+<div id="outline-container-org94a79b6" class="outline-4">
+<h4 id="org94a79b6"><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
@@ -1021,14 +1132,14 @@ that.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">htmlize</span> <span style="color: #a626a4;">:straight</span> t)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">htmlize</span> <span style="color: #C57BDB;">:straight</span> t)
</pre>
</div>
</div>
</div>
-<div id="outline-container-orgf4a9fcb" class="outline-4">
-<h4 id="orgf4a9fcb"><span class="section-number-4">4.10.6</span> toc-org</h4>
+<div id="outline-container-orgfe9a838" class="outline-4">
+<h4 id="orgfe9a838"><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
@@ -1037,9 +1148,9 @@ Github README.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">toc-org</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:config</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">toc-org</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:config</span>
(add-hook 'org-mode-hook 'toc-org-mode))
</pre>
</div>
@@ -1048,8 +1159,8 @@ Github README.
</div>
</div>
-<div id="outline-container-orgc7078e4" class="outline-2">
-<h2 id="orgc7078e4"><span class="section-number-2">5</span> Themes and Icons</h2>
+<div id="outline-container-org2e2f48d" class="outline-2">
+<h2 id="org2e2f48d"><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
@@ -1058,8 +1169,8 @@ time.
</p>
</div>
-<div id="outline-container-orgcc31c1a" class="outline-4">
-<h4 id="orgcc31c1a"><span class="section-number-4">5.0.1</span> Doom themes</h4>
+<div id="outline-container-orgbf48e0f" class="outline-4">
+<h4 id="orgbf48e0f"><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
@@ -1067,17 +1178,18 @@ Dracula someday as well).
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">doom-themes</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:functions</span> doom-themes-org-config doom-themes-treemacs-config
- <span style="color: #a626a4;">:config</span>
- (<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">doom-themes-treemacs-theme</span>)
- (<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">doom-themes-enable-bold</span>)
- (<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">doom-themes-enable-italic</span>)
- (<span style="color: #e45649;">setq</span> doom-themes-enable-bold t
+<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
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:functions</span> doom-themes-org-config doom-themes-treemacs-config
+ <span style="color: #C57BDB;">:config</span>
+ (<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">doom-themes-treemacs-theme</span>)
+ (<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">doom-themes-enable-bold</span>)
+ (<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">doom-themes-enable-italic</span>)
+ (<span style="color: #51afef;">setq</span> doom-themes-enable-bold t
doom-themes-enable-italic t)
(load-theme 'doom-vibrant t)
- (<span style="color: #e45649;">setq</span> doom-themes-treemacs-theme <span style="color: #50a14f;">"doom-colors"</span>)
+ (<span style="color: #51afef;">setq</span> doom-themes-treemacs-theme <span style="color: #7bc275;">"doom-colors"</span>)
(doom-themes-treemacs-config)
(doom-themes-org-config))
</pre>
@@ -1085,8 +1197,8 @@ Dracula someday as well).
</div>
</div>
-<div id="outline-container-orgcfc71dd" class="outline-4">
-<h4 id="orgcfc71dd"><span class="section-number-4">5.0.2</span> All the icons</h4>
+<div id="outline-container-orgf8d2a3e" class="outline-4">
+<h4 id="orgf8d2a3e"><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
@@ -1094,15 +1206,15 @@ guess. Pretty straightforward.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">all-the-icons</span>
- <span style="color: #a626a4;">:straight</span> t)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">all-the-icons</span>
+ <span style="color: #C57BDB;">:straight</span> t)
</pre>
</div>
</div>
</div>
</div>
-<div id="outline-container-orgefe4cf9" class="outline-2">
-<h2 id="orgefe4cf9"><span class="section-number-2">6</span> Filetype Configurations</h2>
+<div id="outline-container-org5034cb0" class="outline-2">
+<h2 id="org5034cb0"><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
@@ -1110,8 +1222,8 @@ are for indents and spaces, mostly.
</p>
</div>
-<div id="outline-container-orgff35f48" class="outline-3">
-<h3 id="orgff35f48"><span class="section-number-3">6.1</span> Default Formatting</h3>
+<div id="outline-container-org2a8e1fc" class="outline-3">
+<h3 id="org2a8e1fc"><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
@@ -1119,7 +1231,7 @@ so I avoid them wherever I can.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">setq-default</span> indent-tabs-mode nil
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq-default</span> indent-tabs-mode nil
tab-width 8
fill-column 80)
</pre>
@@ -1127,17 +1239,17 @@ so I avoid them wherever I can.
</div>
</div>
-<div id="outline-container-org1a94d90" class="outline-3">
-<h3 id="org1a94d90"><span class="section-number-3">6.2</span> Markdown</h3>
+<div id="outline-container-org503c747" class="outline-3">
+<h3 id="org503c747"><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.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">md-indent-tabs-mode</span>)
-(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">md-tab-width</span>)
-(<span style="color: #e45649;">setq</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">md-indent-tabs-mode</span>)
+(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">md-tab-width</span>)
+(<span style="color: #51afef;">setq</span>
md-indent-tabs-mode nil
md-tab-width 4
)
@@ -1146,17 +1258,17 @@ For markdown, I want to have 4 spaces as an indentation.
</div>
</div>
-<div id="outline-container-orgcda54d0" class="outline-3">
-<h3 id="orgcda54d0"><span class="section-number-3">6.3</span> Shell</h3>
+<div id="outline-container-org5162147" class="outline-3">
+<h3 id="org5162147"><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.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">sh-indent-tabs-mode</span>)
-(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">sh-tab-width</span>)
-(<span style="color: #e45649;">setq</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">sh-indent-tabs-mode</span>)
+(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">sh-tab-width</span>)
+(<span style="color: #51afef;">setq</span>
sh-indent-tabs-mode nil
sh-tab-width 4
)
@@ -1165,8 +1277,8 @@ For shell, I want to have 4 spaces as an indentation.
</div>
</div>
-<div id="outline-container-orgdc9f2a6" class="outline-3">
-<h3 id="orgdc9f2a6"><span class="section-number-3">6.4</span> Python</h3>
+<div id="outline-container-orgbff8d3f" class="outline-3">
+<h3 id="orgbff8d3f"><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
@@ -1174,8 +1286,8 @@ for that as well.
</p>
</div>
-<div id="outline-container-org1e2944c" class="outline-4">
-<h4 id="org1e2944c"><span class="section-number-4">6.4.1</span> Company jedi</h4>
+<div id="outline-container-org10aa483" class="outline-4">
+<h4 id="org10aa483"><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
@@ -1183,10 +1295,10 @@ is the use-package
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">use-package</span> <span style="color: #b751b6;">company-jedi</span>
- <span style="color: #a626a4;">:straight</span> t
- <span style="color: #a626a4;">:after</span> company
- <span style="color: #a626a4;">:config</span>
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">use-package</span> <span style="color: #a991f1;">company-jedi</span>
+ <span style="color: #C57BDB;">:straight</span> t
+ <span style="color: #C57BDB;">:after</span> company
+ <span style="color: #C57BDB;">:config</span>
(add-to-list 'company-backends 'company-jedi))
</pre>
</div>
@@ -1194,8 +1306,8 @@ is the use-package
</div>
</div>
</div>
-<div id="outline-container-org43f2b13" class="outline-2">
-<h2 id="org43f2b13"><span class="section-number-2">7</span> Other Settings</h2>
+<div id="outline-container-orgcf2c970" class="outline-2">
+<h2 id="orgcf2c970"><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
@@ -1203,8 +1315,8 @@ for me.
</p>
</div>
-<div id="outline-container-orgbadee03" class="outline-3">
-<h3 id="orgbadee03"><span class="section-number-3">7.1</span> Dired – ls dired</h3>
+<div id="outline-container-org38fb2f4" class="outline-3">
+<h3 id="org38fb2f4"><span class="section-number-3">7.1</span> Dired – 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
@@ -1212,15 +1324,15 @@ not have a <code>--dired</code> option. Let's disable it.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">defvar</span> <span style="color: #6a1868;">dired-use-ls-dired</span>)
-(<span style="color: #e45649;">setq</span> dired-use-ls-dired nil)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">defvar</span> <span style="color: #DFDFDF;">dired-use-ls-dired</span>)
+(<span style="color: #51afef;">setq</span> dired-use-ls-dired nil)
</pre>
</div>
</div>
</div>
-<div id="outline-container-orgc955759" class="outline-3">
-<h3 id="orgc955759"><span class="section-number-3">7.2</span> Coding System for Terminal</h3>
+<div id="outline-container-orgfea51df" class="outline-3">
+<h3 id="orgfea51df"><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.
@@ -1231,18 +1343,18 @@ I want emacs to use utf-8 so my terminal isn't filled with '?' characters.
</div>
</div>
</div>
-<div id="outline-container-org566f39f" class="outline-3">
-<h3 id="org566f39f"><span class="section-number-3">7.3</span> Backup Options</h3>
+<div id="outline-container-orga94271f" class="outline-3">
+<h3 id="orga94271f"><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: #e45649;">setq</span> backup-directory-alist `((<span style="color: #50a14f;">"."</span> . <span style="color: #50a14f;">"~/.cache/emacs/saves"</span>)))
+<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>)))
</pre>
</div>
</div>
</div>
-<div id="outline-container-orgf7aff98" class="outline-3">
-<h3 id="orgf7aff98"><span class="section-number-3">7.4</span> Set Browser</h3>
+<div id="outline-container-org802e425" class="outline-3">
+<h3 id="org802e425"><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
@@ -1250,8 +1362,8 @@ so that I don't have to keep track of it in case I ever change my browser.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">setq</span>
- browse-url-generic-program (executable-find (getenv <span style="color: #50a14f;">"BROWSER"</span>))
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">setq</span>
+ browse-url-generic-program (executable-find (getenv <span style="color: #7bc275;">"BROWSER"</span>))
browse-url-browser-function 'browse-url-generic
)
</pre>
@@ -1259,15 +1371,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-orgf6bda23" class="outline-2">
-<h2 id="orgf6bda23"><span class="section-number-2">8</span> Notes</h2>
+<div id="outline-container-orgdafa680" class="outline-2">
+<h2 id="orgdafa680"><span class="section-number-2">8</span> Notes</h2>
<div class="outline-text-2" id="text-8">
</div>
-<div id="outline-container-org65479c3" class="outline-3">
-<h3 id="org65479c3"><span class="section-number-3">8.1</span> Reverting to package.el</h3>
+<div id="outline-container-orga1e9f56" class="outline-3">
+<h3 id="orga1e9f56"><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="#orgbe93c8a">3.2</a>
+You can always revert back to <code>package.el</code> by replacing the <a href="#org2dd03d0">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
@@ -1276,8 +1388,8 @@ about the internals of straight.
</p>
</div>
-<div id="outline-container-orgec421c5" class="outline-4">
-<h4 id="orgec421c5"><span class="section-number-4">8.1.1</span> Replacing the bootstrap command</h4>
+<div id="outline-container-org95f7d3f" class="outline-4">
+<h4 id="org95f7d3f"><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
@@ -1289,10 +1401,10 @@ Keep in mind that you shouldn't add <code>:tangle no</code>.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">require</span> '<span style="color: #b751b6;">package</span>)
-(<span style="color: #e45649;">setq</span> package-archives '(
- (<span style="color: #50a14f;">"elpa"</span> . <span style="color: #50a14f;">"https://elpa.gnu.org/packages/"</span>)
- (<span style="color: #50a14f;">"melpa"</span> . <span style="color: #50a14f;">"https://melpa.org/packages/"</span>)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">require</span> '<span style="color: #a991f1;">package</span>)
+(<span style="color: #51afef;">setq</span> package-archives '(
+ (<span style="color: #7bc275;">"elpa"</span> . <span style="color: #7bc275;">"https://elpa.gnu.org/packages/"</span>)
+ (<span style="color: #7bc275;">"melpa"</span> . <span style="color: #7bc275;">"https://melpa.org/packages/"</span>)
))
(package-initialize)
</pre>
@@ -1305,8 +1417,8 @@ as it works with package.el
</div>
</div>
-<div id="outline-container-org75ccd8e" class="outline-4">
-<h4 id="org75ccd8e"><span class="section-number-4">8.1.2</span> Making use-package work with package.el</h4>
+<div id="outline-container-orgb18a461" class="outline-4">
+<h4 id="orgb18a461"><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
@@ -1314,7 +1426,7 @@ commands.
</p>
<div class="org-src-container">
-<pre class="src src-emacs-lisp">(<span style="color: #e45649;">unless</span> (package-installed-p 'use-package)
+<pre class="src src-emacs-lisp">(<span style="color: #51afef;">unless</span> (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
</pre>
@@ -1327,7 +1439,7 @@ run the following command.
</p>
<div class="org-src-container">
-<pre class="src src-sh">sed -i <span style="color: #50a14f;">'s/\:straight /\:ensure /g'</span> init.org
+<pre class="src src-sh">sed -i <span style="color: #7bc275;">'s/\:straight /\:ensure /g'</span> init.org
</pre>
</div>
</div>
@@ -1337,7 +1449,7 @@ run the following command.
</div>
<div id="postamble" class="status">
<p class="author">Author: Cem Keylan</p>
-<p class="date">Created: 2020-03-31 Tue 11:51</p>
+<p class="date">Created: 2020-03-31 Tue 17:45</p>
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>
diff --git a/init.org b/init.org
@@ -516,7 +516,6 @@ These tables are taken from the [[https://github.com/Alexander-Miller/treemacs][
| C-c C-w e | treemacs-edit-workspaces | Edit workspace layout via org-mode. |
| C-c C-w f | treemacs-set-fallback-workspace | Select the default fallback workspace. |
-
** emacs-dashboard
#+BEGIN_SRC emacs-lisp
(use-package dashboard