commit 92f1b0756eec212f479729b5aa7d0ce003f7497d
parent b5118cbe8c286bc56e5673be2da886f253bbbd17
Author: Michał M. Sapka <michal@sapka.me>
Date: Tue, 6 Jun 2023 22:59:46 +0200
feat: Modus theme
Diffstat:
1 file changed, 125 insertions(+), 58 deletions(-)
diff --git a/emacs/.emacs.d/config.org b/emacs/.emacs.d/config.org
@@ -2,12 +2,13 @@
#+AUTHOR: Michał Sapka
#+STARTUP: showall indent
-* Table of contents :toc_3:
+* Table of contents :toc_4:
- [[#general-configuration][General configuration]]
- [[#lexical-binding][Lexical binding]]
- [[#package-management][Package management]]
- [[#encoding][Encoding]]
- [[#set-look-and-behavior][Set look and behavior]]
+ - [[#modus-themes-configuration][Modus themes configuration]]
- [[#autocomplete-user-input][Autocomplete user input]]
- [[#marginalia][Marginalia]]
- [[#savehist][Savehist]]
@@ -32,11 +33,17 @@
- [[#elfeed][Elfeed]]
- [[#elfeed-org][Elfeed-org]]
- [[#feeds][Feeds]]
+ - [[#blogs][Blogs]]
+ - [[#vlogs][Vlogs]]
+ - [[#engineering][Engineering]]
+ - [[#news][News]]
+ - [[#emacs][Emacs]]
- [[#ebooks-reading][Ebooks reading]]
- [[#org-mode][Org-mode]]
- [[#org-mode-1][Org-mode]]
- [[#toc-mode][TOC-mode]]
- [[#babel][Babel]]
+- [[#bibtex][Bibtex]]
* General configuration
** Lexical binding
@@ -93,7 +100,7 @@ Hide the UI
#+BEGIN_SRC emacs-lisp
(setq require-final-newline t)
(tool-bar-mode -1)
- (setq visible-bell t)
+ (setq visible-bell t
#+END_SRC
Show line numbers in the gutter
@@ -102,6 +109,55 @@ Show line numbers in the gutter
(global-display-line-numbers-mode)
#+END_SRC
+*** Modus themes configuration
+
+I use Modus themes from =Prot= with a few personalisations. Prot's work is amazing and I have yet to see such personalized theme anywhwere.
+ref: https://protesilaos.com/emacs/modus-themes
+
+A lot of those values are taken directly from the theme's documentation.
+
+#+begin_src emacs-lisp
+ (setq modus-themes-mode-line '(borderless moody)
+ modus-themes-region '(accented)
+ modus-themes-completions '(opinionated)
+ modus-themes-completion '((t . (extrabold underline)))
+ modus-themes-prompts '(italic bold)
+
+ modus-themes-bold-constructs t
+ modus-themes-italic-constructs t
+ modus-themes-paren-match '(bold intense))
+#+end_src
+
+Make the headings on org-mode more obvious. You need to set =modus-themes-scale-headings= for Modus to scale the themes.
+
+#+begin_src emacs-lisp
+ (setq modus-themes-headings
+ '((1 . (rainbow background 1.5))
+ (t . (rainbow overline 1.2))))
+ (setq modus-themes-scale-headings t)
+#+end_src
+
+#+RESULTS:
+: t
+
+Make source code blocks in Org more visible
+
+#+begin_src emacs-lisp
+ (setq modus-themes-org-blocks 'tinted-background)
+#+end_src
+
+And finally, set up the theme.
+
+#+begin_src emacs-lisp
+ (load-theme 'modus-operandi t)
+#+end_src
+
+We can use a keyboard key to switch between light and dark theme. Since my window is right behind me when I'm sitting in front of a monitor, a light theme comes handy.
+
+#+begin_src emacs-lisp
+ (define-key global-map (kbd "<f5>") #'modus-themes-toggle)
+#+end_src
+
** Autocomplete user input
FIDO mode is all I need
@@ -356,77 +412,78 @@ Yeah, force indentation
*** Feeds :elfeed:
-***** Blogs
-
-****** https://michal.sapka.me/index.xml :important:
-****** https://world.hey.com/dhh/feed.atom
-****** https://gideonwolfe.com/index.xml :important:
-****** https://fabiensanglard.net/rss.xml :important:
-****** https://grumpygamer.com/rss :important:
-****** https://lukesmith.xyz/rss.xml :important:
-****** https://rubenerd.com/feed/
-****** https://a3nm.net/blog/feed.xml
-****** https://brainbaking.com/index.xml :important:
-****** https://bt.ht/atom.xml
-****** https://josem.co/articles/index.xml
-****** https://robert.bearblog.dev/feed/
-****** https:/www.datagubbe.se/atom.xml :important:
-
-***** Vlogs
-
-****** https://odysee.com/$/rss/@AlphaNerd:8
-****** https://odysee.com/$/rss/@DistroTubEe:2
-****** https://odysee.com/$/rss/@danwood:0
-****** https://odysee.com/$/rss/@SystemCrafters:e
-****** https://odysee.com/$/rss/@RoboNuggie:0
-****** https://odysee.com/$/rss/@Pine64:a
-****** https://odysee.com/$/rss/@jblow:0
-****** https://odysee.com/$/rss/@GaryHTech:0
-****** https://odysee.com/$/rss/@fireship:6
-****** https://tilvids.com/feeds/videos.xml?videoChannelId=2775
+**** Blogs
+
+***** https://michal.sapka.me/index.xml :important:
+***** https://world.hey.com/dhh/feed.atom
+***** https://gideonwolfe.com/index.xml :important:
+***** https://fabiensanglard.net/rss.xml :important:
+***** https://grumpygamer.com/rss :important:
+***** https://lukesmith.xyz/rss.xml :important:
+***** https://rubenerd.com/feed/ :important:
+***** https://a3nm.net/blog/feed.xml
+***** https://brainbaking.com/index.xml :important:
+***** https://bt.ht/atom.xml
+***** https://josem.co/articles/index.xml
+***** https://robert.bearblog.dev/feed/
+***** https:/www.datagubbe.se/atom.xml :important:
+***** https://xpil.eu/feed/
+
+**** Vlogs
+
+***** https://odysee.com/$/rss/@AlphaNerd:8
+***** https://odysee.com/$/rss/@DistroTubEe:2
+***** https://odysee.com/$/rss/@danwood:0
+***** https://odysee.com/$/rss/@SystemCrafters:e
+***** https://odysee.com/$/rss/@RoboNuggie:0
+***** https://odysee.com/$/rss/@Pine64:a
+***** https://odysee.com/$/rss/@jblow:0
+***** https://odysee.com/$/rss/@GaryHTech:0
+***** https://odysee.com/$/rss/@fireship:6
+***** https://tilvids.com/feeds/videos.xml?videoChannelId=2775
Veronica Explains
-****** https://tilvids.com/feeds/videos.xml?videoChannelId=47
+***** https://tilvids.com/feeds/videos.xml?videoChannelId=47
Linux Experiment
-****** https://videos.lukesmith.xyz/feeds/videos.xml?sort=-publishedAt :important:
-****** https://www.youtube.com/feeds/videos.xml?channel_id=gUCsnGwSIHyoYN0kiINAGUKx
+***** https://videos.lukesmith.xyz/feeds/videos.xml?sort=-publishedAt :important:
+***** https://www.youtube.com/feeds/videos.xml?channel_id=gUCsnGwSIHyoYN0kiINAGUKx
Wolfgang's Channel
-****** https://www.youtube.com/feeds/videos.xml?channel_id=UClOGLGPOqlAiLmOvXW5lKbw
+***** https://www.youtube.com/feeds/videos.xml?channel_id=UClOGLGPOqlAiLmOvXW5lKbw
MandaloreGaming
-****** https://www.youtube.com/feeds/videos.xml?channel_id=UCNmv1Cmjm3Hk8Vc9kIgv0AQ
+***** https://www.youtube.com/feeds/videos.xml?channel_id=UCNmv1Cmjm3Hk8Vc9kIgv0AQ
Grim Beard
-****** https://www.youtube.com/feeds/videos.xml?channel_id=UCEHFikgnRuLd1HYKTLrae9Q
+***** https://www.youtube.com/feeds/videos.xml?channel_id=UCEHFikgnRuLd1HYKTLrae9Q
A Life Engineered
-****** https://www.youtube.com/feeds/videos.xml?channel_id=UCJ6KZTTnkE-s2XFJJmoTAkw
+***** https://www.youtube.com/feeds/videos.xml?channel_id=UCJ6KZTTnkE-s2XFJJmoTAkw
Accursed Farm
-****** https://www.youtube.com/feeds/videos.xml?channel_id=UC2Xd-TjJByJyK2w1zNwY0zQ
+***** https://www.youtube.com/feeds/videos.xml?channel_id=UC2Xd-TjJByJyK2w1zNwY0zQ
Beyond Fireship
-****** https://www.youtube.com/feeds/videos.xml?channel_id=UC4w1YQAJMWOz4qtxinq55LQ
+***** https://www.youtube.com/feeds/videos.xml?channel_id=UC4w1YQAJMWOz4qtxinq55LQ
Level1Techs
-***** Engineering
+**** Engineering
-****** https://cprss.s3.amazonaws.com/rubyweekly.com.xml
-****** https://feeds.feedburner.com/digest-programming
-****** https://zendesk.engineering/feed
-****** https://shopify.engineering/blog.atom
-****** https://jvns.ca/atom.xml
-****** https://susam.net/blog/feed.xml
-****** https://dev.37signals.com/feed/posts.xml
+***** https://cprss.s3.amazonaws.com/rubyweekly.com.xml
+***** https://feeds.feedburner.com/digest-programming
+***** https://zendesk.engineering/feed
+***** https://shopify.engineering/blog.atom
+***** https://jvns.ca/atom.xml
+***** https://susam.net/blog/feed.xml
+***** https://dev.37signals.com/feed/posts.xml
-***** News
+**** News
-****** https://www.theregister.com/headlines.atom
-****** https://rss.slashdot.org/Slashdot/slashdotMain
-****** https://feeds.arstechnica.com/arstechnica/features
-****** https://www.zendesk.com/public/assets/sitemaps/en/feed.xml
-****** https://frame.work/blog.rss
-****** https://www.pine64.org/feed/
+***** https://www.theregister.com/headlines.atom
+***** https://rss.slashdot.org/Slashdot/slashdotMain
+***** https://feeds.arstechnica.com/arstechnica/features
+***** https://www.zendesk.com/public/assets/sitemaps/en/feed.xml
+***** https://frame.work/blog.rss
+***** https://www.pine64.org/feed/
-***** Emacs
+**** Emacs
-****** https://pragmaticemacs.wordpress.com/feed/
-****** https://protesilaos.com/master.xml
-****** https://sqrtminusone.xyz/posts/index.xml
+***** https://pragmaticemacs.wordpress.com/feed/
+***** https://protesilaos.com/master.xml
+***** https://sqrtminusone.xyz/posts/index.xml
** Ebooks reading
@@ -491,5 +548,15 @@ Typing code blocks is tedious, so let's make it easier. Typing =<el<TAB>= will c
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
#+end_src
+* Bibtex
+
+I'd love to keep bibligraphy in a managable way. Grown ups seem to agree that bibtex is the standard and it has a nice emacs plugin
+
+#+begin_src emacs-lisp
+ (use-package ebib
+ :ensure t)
+#+end_src
+
+#+RESULTS: