From 65474afcb05622fc17b0d7de6596a4c516e84fe2 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:23:47 +0100 Subject: [PATCH 01/29] =?UTF-8?q?=E2=9E=96=20(pocket)=20Remove=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config.org b/config.org index 769753a..d8f0756 100644 --- a/config.org +++ b/config.org @@ -2326,15 +2326,10 @@ Emacs client for Mastodon. mastodon-active-user "mmk2410")) #+end_src -* Pocket - Emacs client for Pocket reading list (getpocket.com) - - [[https://github.com/alphapapa/pocket-reader.el][GitHub: alphapapa/pocket-reader.el]] #+begin_src emacs-lisp -(use-package pocket-reader) #+end_src * mu4e From 122529c41c0b6daff8ee68a71c08a64b85f914f6 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:24:10 +0100 Subject: [PATCH 02/29] =?UTF-8?q?=E2=9C=A8=20(emacs-everywhere)=20Add=20pa?= =?UTF-8?q?ckage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.org b/config.org index d8f0756..88dd045 100644 --- a/config.org +++ b/config.org @@ -2326,10 +2326,16 @@ Emacs client for Mastodon. mastodon-active-user "mmk2410")) #+end_src +* Emacs Everywhere +Edit with Emacs everywhere! +Source: [[https://github.com/tecosaur/emacs-everywhere][GitHub: tecosaur/emacs-everywhere]] #+begin_src emacs-lisp +(use-package emacs-everywhere + :config + (add-to-list 'emacs-everywhere-markdown-windows "Merge Requests")) #+end_src * mu4e From 3bd68eed6fcbfa267958b87e8f4263996848c7ca Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:24:48 +0100 Subject: [PATCH 03/29] =?UTF-8?q?=E2=9C=A8=20(emms)=20Add=20play-url-at-po?= =?UTF-8?q?int=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.org b/config.org index 88dd045..8bacca8 100644 --- a/config.org +++ b/config.org @@ -2110,6 +2110,17 @@ And for playing music in Emacs there is EMMS. (setq emms-source-file-default-directory "~/Music")) #+end_src +Play an URL at point using EMMS + +#+begin_src emacs-lisp +(with-eval-after-load 'emms + (defun mmk2410/play-url-at-point () + "Play URL at point using EMMS" + (interactive) + (emms-play-url + (shr-url-at-point nil)))) +#+end_src + * ERC (the Emacs IRC client) ** The beast itself From 63ed6f4fff2421c90846f05ec2eacd9d01082fcb Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:27:50 +0100 Subject: [PATCH 04/29] =?UTF-8?q?=E2=9C=A8=20(mu4e)=20Include=20favorites?= =?UTF-8?q?=20in=20unread=20mail=20bookmark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 8bacca8..a761cad 100644 --- a/config.org +++ b/config.org @@ -2567,7 +2567,8 @@ I don't really like the default bookmarks that mu4e sets. Thats why I overwrite (setq mu4e-bookmarks '(( :name "Unread work messages" :key ?w - :query "(flag:unread and m:/work/*) or m:/work/inbox" ) + :query "(flag:unread and m:/work/*) or m:/work/inbox" + :favorite t) ( :name "Unread no-reply work messages" :key ?n :query "flag:unread and m:/work-noreply/*" ) From 8a137fe73a488d653eb223d119d0c9386b9571cd Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:28:09 +0100 Subject: [PATCH 05/29] =?UTF-8?q?=E2=9C=A8=20(work/mu4e)=20Update=20signat?= =?UTF-8?q?ure=20file=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.org b/config.org index a761cad..f758a68 100644 --- a/config.org +++ b/config.org @@ -2652,7 +2652,7 @@ Now define the contexts. (string-prefix-p "/work" (mu4e-message-field msg :maildir)))) :vars '( ( user-mail-address . "m.kapfer@emplify-software.de" ) ( user-full-name . "Marcel Kapfer" ) - ( message-signature-file . "~/dotfiles/dot-work/signature/mu4e") + ( message-signature-file . "~/.dotfiles/dot-work/signature/mu4e") ( mu4e-sent-folder . "/work/Sent Items" ) ( mu4e-drafts-folder . "/work/Drafts" ) ( mu4e-trash-folder . "/work/Trash" ) From 792bcc134bd2d85a451a8890c80f4df5887500b2 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:28:33 +0100 Subject: [PATCH 06/29] =?UTF-8?q?=E2=9C=A8=20(eshell)=20Additional=20visua?= =?UTF-8?q?l=20subcommands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index f758a68..791a4dc 100644 --- a/config.org +++ b/config.org @@ -2248,7 +2248,9 @@ Resources: :config (setq eshell-visual-subcommands '(("docker" "pull" "build") - ("docker-compose" "build")))) + ("docker compose" "build") + ("docker compose" "up") + ("docker compose" "down"))) #+end_src * Elfeed From deb33f8e87b47b976390184cd835be901b8fd337 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:28:54 +0100 Subject: [PATCH 07/29] =?UTF-8?q?=E2=9C=A8=20(eshell)=20Enable=20visual-li?= =?UTF-8?q?ne-mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 1 + 1 file changed, 1 insertion(+) diff --git a/config.org b/config.org index 791a4dc..b6c440b 100644 --- a/config.org +++ b/config.org @@ -2251,6 +2251,7 @@ Resources: ("docker compose" "build") ("docker compose" "up") ("docker compose" "down"))) + :hook (eshell-mode . visual-line-mode)) #+end_src * Elfeed From 46fefddc316a05dbf9fb820156e868d796892e37 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:29:14 +0100 Subject: [PATCH 08/29] =?UTF-8?q?=F0=9F=94=A7=20(php)=20Disable=20indent-t?= =?UTF-8?q?abs-mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index b6c440b..714068b 100644 --- a/config.org +++ b/config.org @@ -1992,7 +1992,9 @@ Source: [[https://github.com/emacs-php/php-mode][GitHub: emacs-php/php-mode]] #+begin_src emacs-lisp (use-package php-mode :mode "\\.php\\'" - :config (setq php-mode-coding-style 'PSR2)) + :config + (setq php-mode-coding-style 'PSR2) + (setq indent-tabs-mode nil)) #+end_src ** TypeScript From 4fd36ed2d0defe7b10bb99da9010a7c2569ded55 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:29:59 +0100 Subject: [PATCH 09/29] =?UTF-8?q?=E2=9C=A8=20(clojure)=20Add=20cider=20pac?= =?UTF-8?q?kage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.org b/config.org index 714068b..f009fac 100644 --- a/config.org +++ b/config.org @@ -1972,6 +1972,12 @@ I use Docker and more importantly docker-compose for development. Thanks to [[ht #+end_src * Language-Specific Programming Packages +** Clojure + +#+begin_src emacs-lisp +(use-package cider) +#+end_src + ** Go Emacs mode for the Go programming language From d48e472f9c842170f2065cbe9914087b13b87993 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:30:24 +0100 Subject: [PATCH 10/29] =?UTF-8?q?=F0=9F=94=A7=20(eldoc)=20Diminish=20eldoc?= =?UTF-8?q?-box?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 1 + 1 file changed, 1 insertion(+) diff --git a/config.org b/config.org index f009fac..dc2e5b3 100644 --- a/config.org +++ b/config.org @@ -1934,6 +1934,7 @@ Source: [[https://github.com/casouri/eldoc-box][GitHub:casouri/eldoc-box]] #+begin_src emacs-lisp (use-package eldoc-box + :diminish 'eldoc-box-hover-at-point-mode :after eglot :hook ((eglot-managed-mode . eldoc-box-hover-at-point-mode))) #+end_src From f24672d79109b22c94cb549200c5f8ecab2d2143 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:32:30 +0100 Subject: [PATCH 11/29] =?UTF-8?q?=E2=9E=96=20(highligh-indent-guides)=20Di?= =?UTF-8?q?sable=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 1 + 1 file changed, 1 insertion(+) diff --git a/config.org b/config.org index dc2e5b3..decf13e 100644 --- a/config.org +++ b/config.org @@ -1869,6 +1869,7 @@ Source: [[https://github.com/DarthFennec/highlight-indent-guides][DarthFennec/hi #+begin_src emacs-lisp (use-package highlight-indent-guides + :disabled t :config (setq highlight-indent-guides-method 'character highlight-indent-guides-responsive 'top) From f8ec81749e8439d093ee63c9013b45a44e149e8b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:32:59 +0100 Subject: [PATCH 12/29] =?UTF-8?q?=E2=9C=A8=20(verb)=20Add=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.org b/config.org index decf13e..42c5b4e 100644 --- a/config.org +++ b/config.org @@ -1687,6 +1687,18 @@ GitHub: [[https://github.com/takaxp/org-tree-slide][GitHub:takaxp/org-tree-slide (org-image-actual-width nil)) #+end_src +** Verb (Restclient) + +Organize and send HTTP requests from Emacs + +Source: [[https://github.com/federicotdn/verb][GitHub: federicotdn/verb]] + +#+begin_src emacs-lisp +(use-package verb + :after org + :config (define-key org-mode-map (kbd "C-c C-r") verb-command-map)) +#+end_src + * Org Research Assistant ** Org Roam From 6957ea1cb703ac538727326bbef87ccbe09716f2 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:41:29 +0100 Subject: [PATCH 13/29] =?UTF-8?q?=E2=9C=A8=20(org)=20set=20org-tags-column?= =?UTF-8?q?=20to=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.org b/config.org index 42c5b4e..0b7f66c 100644 --- a/config.org +++ b/config.org @@ -1537,6 +1537,10 @@ Fast org key bindings. ** Nicer display for Org buffers +#+begin_src emacs-lisp +(setq org-tags-column 0) +#+end_src + From [[https://github.com/daviwil/emacs-from-scratch/blob/master/Emacs.org#center-org-buffers][System Crafters' Emacs from Scratch Config]]. #+begin_src emacs-lisp From ef99c00a9dffa4cb11512c890fe1146b0e0bdff2 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:41:57 +0100 Subject: [PATCH 14/29] =?UTF-8?q?=F0=9F=94=A7=20(org)=20Adjust=20heading?= =?UTF-8?q?=20font=20sizes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 0b7f66c..fb78236 100644 --- a/config.org +++ b/config.org @@ -1159,8 +1159,8 @@ I like to have larger headlines in Org for better identifying them. The configur #+begin_src emacs-lisp (defun mmk2410/org-font-adjust-headlines () "Adjust headline sizes, font family and weight" - (dolist (face '((org-level-1 . 1.4) - (org-level-2 . 1.3) + (dolist (face '((org-level-1 . 1.3) + (org-level-2 . 1.25) (org-level-3 . 1.2) (org-level-4 . 1.15) (org-level-5 . 1.1) From 92e394e97a246874422d9335019ed7973b36176b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:42:15 +0100 Subject: [PATCH 15/29] =?UTF-8?q?=F0=9F=94=A7=20(org)=20Round=20times=20to?= =?UTF-8?q?=205=20minutes=20while=20clocking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index fb78236..7c64eb9 100644 --- a/config.org +++ b/config.org @@ -1140,7 +1140,13 @@ Hide emphasis markers. While this sometimes is very distracting it mostly looks (setq org-hide-emphasis-markers t) #+end_src -Make indented display of org files the default +Clocking settings + +#+begin_src emacs-lisp +(setq org-clock-rounding-minutes 5) +#+end_src + +Enable indent mode by default #+begin_src emacs-lisp (setq org-startup-indented t) From 2fcf29abf6b54d13ba0ddc1ef85cd65c93a4cc5c Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:43:16 +0100 Subject: [PATCH 16/29] =?UTF-8?q?=E2=9C=A8=20(rainbow-mode)=20Add=20rainbo?= =?UTF-8?q?w-mode=20=F0=9F=8C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.org b/config.org index 7c64eb9..6c3ab65 100644 --- a/config.org +++ b/config.org @@ -812,6 +812,20 @@ Source: [[https://github.com/janusvm/emacs-gitmoji][GitHub: janusvm/emacs-gitmoj :load-path "lisp/gitmoji/") #+end_src +** PRIDE 🌈 + +Rainbow flag in the Emacs modeline + +Source: [[https://github.com/janusvm/emacs-gitmoji][GitHub: halfwhole/pride-mode]] + +#+begin_src emacs-lisp +(use-package pride-mode + :load-path "lisp/pride-mode/" + :config + (setq pride-bar-length 32) + (pride-mode)) +#+end_src + ** diff-hl Emacs package for highlighting uncommitted changes From 387868df6b3614aae28f43ba033040dc76e70f3a Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:44:16 +0100 Subject: [PATCH 17/29] =?UTF-8?q?=E2=9C=A8=20(forge)=20Add=20forge=20for?= =?UTF-8?q?=20magit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.org b/config.org index 6c3ab65..7c7a5a8 100644 --- a/config.org +++ b/config.org @@ -783,6 +783,13 @@ Source: [[https://magit.vc/][magit.vc]] ("C-x g" . magit-status)) #+end_src +** forge + +#+begin_src emacs-lisp +(use-package forge + :after magit) +#+end_src + ** orgit Support for Org links to Magit buffers. From ed2d0656c321a81874e5e5322cb298cabc0f6ae6 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:45:19 +0100 Subject: [PATCH 18/29] =?UTF-8?q?=F0=9F=94=A7=20Add=20keybinding=20for=20h?= =?UTF-8?q?ippie-expand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.org b/config.org index 7c7a5a8..84608b5 100644 --- a/config.org +++ b/config.org @@ -657,6 +657,12 @@ List of own custom keybindings (global-set-key (kbd "C-x C-b") 'ibuffer) #+end_src +** Hippie Expand + +#+begin_src emacs-lisp +(global-set-key (kbd "C-ä") 'hippie-expand) +#+end_src + ** Disable =C-z= =C-z= by default (as known from terminal applications) suspends the current frame. Since I use Emacs as GUI and not in terminal I do not want this behavior. From f589a32f8bcdf6edb1c15a30096346e4e3d9d46f Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:47:56 +0100 Subject: [PATCH 19/29] =?UTF-8?q?=E2=9C=A8=20Add=20meeting-nodes=20minor?= =?UTF-8?q?=20mode=20w/=20bg=20transparency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.org b/config.org index 84608b5..c8558f6 100644 --- a/config.org +++ b/config.org @@ -549,6 +549,20 @@ Add a slight transparency to the frames. Code provided by David Wilson / System (add-to-list 'default-frame-alist `(alpha-background . ,mmk2410/alpha-background)) #+end_src +#+begin_src emacs-lisp +(setq meeting-nodes-alpha-background 40) + +(define-minor-mode meeting-nodes-mode + "Take meeting notes." + nil + :global t + :lighter " mn" + + (if meeting-nodes-mode + (set-frame-parameter nil 'alpha-background meeting-nodes-alpha-background) + (set-frame-parameter nil 'alpha-background mmk2410/frame-transparency))) +#+end_src + ** Switch theme During the last weeks I got used to using a light theme during daytime and a dark theme during nighttime. Luckily the themes based on Atom One are to my liking and the doom package provides a dark and light variant. One thing that was difficult with Emacs was actually switching theme since it involved disabling all current ones (for some reason on one machine there are two enabled while on the other machine its only one) and then loading the correct one. These functions try to make that process easier, at least for now. The long-term goal is to automatically change the theme based on the current system-wide setting. From 268592fef7c03cd5e9cc45cdfefb32160472bbea Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:48:27 +0100 Subject: [PATCH 20/29] =?UTF-8?q?=F0=9F=94=A7=20(work)=20Work=20machine=20?= =?UTF-8?q?has=20a=20different=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index c8558f6..1a41afe 100644 --- a/config.org +++ b/config.org @@ -46,14 +46,15 @@ For using the Macbook keyboard effectively with Emacs I made some adjustments ba ** System Detection -My work machine is called “knuth” and there is some configuration which I only want there. +My work machine is called “mccarthy” and there is some configuration which I only want there. #+begin_src emacs-lisp (defun mmk2410/work () "Return t if machine is my work machine" - (string-equal (system-name) "knuth")) + (string-equal (system-name) "mccarthy")) #+end_src + ** Personal Information #+begin_src emacs-lisp From f79231bdc1451e4826f8e5b392c4110c464ee3b8 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:49:42 +0100 Subject: [PATCH 21/29] =?UTF-8?q?=F0=9F=94=A7=20Enable=20visual-line-mode?= =?UTF-8?q?=20in=20shells?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 1 + 1 file changed, 1 insertion(+) diff --git a/config.org b/config.org index 1a41afe..2f6a664 100644 --- a/config.org +++ b/config.org @@ -132,6 +132,7 @@ Sources: (setq-default global-visual-line-mode t) (add-hook 'org-mode-hook 'visual-line-mode) (add-hook 'prog-mode-hook 'visual-line-mode) +(add-hook 'shell-mode-hook 'visual-line-mode) #+end_src ** Delete trailing white-space From 40afea11e4e167b25ae0a0e79cb6a169f3b39763 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:50:17 +0100 Subject: [PATCH 22/29] =?UTF-8?q?=F0=9F=94=A7=20(fonts)=20Increase=20font?= =?UTF-8?q?=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 2f6a664..4956d11 100644 --- a/config.org +++ b/config.org @@ -444,10 +444,10 @@ My typeface is not loading when using emacsclient. So I set it explicitly when c mmk2410/variable-font-name "Open Sans" mmk2410/variable-font-height 160 mmk2410/variable-font-present-height 180) - (setq mmk2410/frame-font "Berkeley Mono 11" + (setq mmk2410/frame-font "Berkeley Mono 12" mmk2410/frame-font-present "Berkeley Mono 16" mmk2410/fixed-font-name "Berkeley Mono" - mmk2410/fixed-font-height 110 + mmk2410/fixed-font-height 120 mmk2410/fixed-font-present-height 160 mmk2410/variable-font-name "Open Sans" mmk2410/variable-font-height 130 From f1735b74c3e51ef7c3ecc08ef6ff359ad5b6c0bf Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:50:39 +0100 Subject: [PATCH 23/29] =?UTF-8?q?=F0=9F=92=84=20(font)=20Switch=20variable?= =?UTF-8?q?-pitch=20font=20to=20Inter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.org b/config.org index 4956d11..674d646 100644 --- a/config.org +++ b/config.org @@ -441,7 +441,7 @@ My typeface is not loading when using emacsclient. So I set it explicitly when c mmk2410/fixed-font-name "Berkeley Mono" mmk2410/fixed-font-height 140 mmk2410/fixed-font-present-height 160 - mmk2410/variable-font-name "Open Sans" + mmk2410/variable-font-name "Inter" mmk2410/variable-font-height 160 mmk2410/variable-font-present-height 180) (setq mmk2410/frame-font "Berkeley Mono 12" @@ -449,8 +449,8 @@ My typeface is not loading when using emacsclient. So I set it explicitly when c mmk2410/fixed-font-name "Berkeley Mono" mmk2410/fixed-font-height 120 mmk2410/fixed-font-present-height 160 - mmk2410/variable-font-name "Open Sans" - mmk2410/variable-font-height 130 + mmk2410/variable-font-name "Inter" + mmk2410/variable-font-height 120 mmk2410/variable-font-present-height 160)) (add-hook 'after-make-frame-functions @@ -1216,7 +1216,7 @@ I like to have larger headlines in Org for better identifying them. The configur (org-level-6 . 1.1) (org-level-7 . 1.1) (org-level-8 . 1.1))) - (set-face-attribute (car face) nil :font "Open Sans" :weight 'bold :height (cdr face)))) + (set-face-attribute (car face) nil :font "Inter" :weight 'medium :height (cdr face)))) (with-eval-after-load 'org (unless (string-prefix-p "ef-" (format "%s" (car custom-enabled-themes))) From b6d142d42cb0c3e6caba99d7465935f84c2ec4f7 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:55:24 +0100 Subject: [PATCH 24/29] =?UTF-8?q?=F0=9F=92=84=20Load=20dark=20theme=20by?= =?UTF-8?q?=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes more sense at least at this time of year --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 674d646..40e5bce 100644 --- a/config.org +++ b/config.org @@ -525,7 +525,7 @@ Installing and enabling ef-themes. #+begin_src emacs-lisp (use-package ef-themes :init - (setq ef-themes-to-toggle '(ef-light ef-dark)) + (setq ef-themes-to-toggle '(ef-eagle ef-owl)) (setq ef-themes-mixed-fonts t) (setq ef-themes-headings '((0 . (variable-pitch light 1.9)) @@ -538,7 +538,7 @@ Installing and enabling ef-themes. (7 . (variable-pitch 1.2)) (t . (variable-pitch 1.1)))) :config - (load-theme 'ef-eagle t)) + (load-theme 'ef-owl t)) #+end_src From 10a1667872629c324b8bd4f8362b034ba9a3d849 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:56:01 +0100 Subject: [PATCH 25/29] =?UTF-8?q?=F0=9F=92=84=20Disable=20background=20tra?= =?UTF-8?q?nsparency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 40e5bce..89d0b6e 100644 --- a/config.org +++ b/config.org @@ -545,10 +545,10 @@ Installing and enabling ef-themes. Add a slight transparency to the frames. Code provided by David Wilson / System Crafters [[https://github.com/daviwil/emacs-from-scratch/blob/master/Emacs.org][Emacs from Scratch]] video series. #+begin_src emacs-lisp -(setq mmk2410/alpha-background 95) +(setq mmk2410/frame-transparency 100) -(set-frame-parameter nil 'alpha-background mmk2410/alpha-background) -(add-to-list 'default-frame-alist `(alpha-background . ,mmk2410/alpha-background)) +(set-frame-parameter nil 'alpha-background mmk2410/frame-transparency) +(add-to-list 'default-frame-alist `(alpha-background . ,mmk2410/frame-transparency)) #+end_src #+begin_src emacs-lisp From 3a3228a53ff388d9278a9513ef500505de1d1d0b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 18:00:13 +0100 Subject: [PATCH 26/29] =?UTF-8?q?=F0=9F=94=A7=20(eww)=20switch=20default?= =?UTF-8?q?=20search=20to=20ecosia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config.org b/config.org index 89d0b6e..50df662 100644 --- a/config.org +++ b/config.org @@ -2267,8 +2267,6 @@ Source: [[https://github.com/kidd/erc-image.el][kidd/erc-image.el]] Normally I use Firefox for browsing the web, but when I am working with full focus in Emacs I sometimes prefer eww. For example while reading a paper and taking notes on it. In this case I don't want to lose my focus while switching to a web browser (and potentially see some open tabs from another project). -In recent times I have gotten really bad search results on DuckDuckGo (either I can't search anymore or they really got worse). So I'm using Startpage at the moment. - More important for me while reading a paper is looking up some things on Wikipedia. So I defined -- additionally to a simple keybinding for eww itself -- a function and a keybinding for searching on the English Wikipedia. #+begin_src emacs-lisp @@ -2288,7 +2286,7 @@ More important for me while reading a paper is looking up some things on Wikiped (use-package eww :config - (setq eww-search-prefix "https://startpage.com/search/?q=") + (setq eww-search-prefix "https://www.ecosia.org/search?q=") :bind (("C-c w b" . 'eww) ("C-c w d" . 'eww-browser-english-dict) ("C-c w w" . 'eww-browse-wikipedia-en))) From 6d972bc5fb5c84ec1dd9f8b2e301047e23422c8b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 18:00:47 +0100 Subject: [PATCH 27/29] =?UTF-8?q?=E2=9C=A8=20(llm)=20Playing=20around=20wi?= =?UTF-8?q?th=20chatgpt-shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Though, I still don't know why --- config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config.org b/config.org index 50df662..73c6503 100644 --- a/config.org +++ b/config.org @@ -2871,6 +2871,24 @@ The following function from him takes care of the other way: bringing a message (global-set-key (kbd "C-c M-m") 'mmk2410/convert-mail-header-to-org-link) #+end_src +* LLM + +#+begin_src emacs-lisp +(use-package chatgpt-shell + :config + (setq chatgpt-shell-models + '(((:provider . "Ollama") + (:label . "Ollama") + (:version . "mistral:latest") + (:short-version . "mistral") + (:token-width . 3) + (:context-window . 131072) + (:handler . chatgpt-shell-ollama--handle-ollama-command) + (:filter . chatgpt-shell-ollama--extract-ollama-response) + (:payload . chatgpt-shell-ollama-make-payload) + (:url . chatgpt-shell-ollama--make-url))))) +#+end_src + * Helpers ** Tab Bar Setup From 0c8e31e9128251a49670cfd0e1a5d8d1ce803439 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 18:04:39 +0100 Subject: [PATCH 28/29] =?UTF-8?q?=F0=9F=94=A7=20(org-mime)=20Customise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 73c6503..7d19b26 100644 --- a/config.org +++ b/config.org @@ -2783,7 +2783,11 @@ The [[https://github.com/org-mime/org-mime][org-mime]] package thankfully allows #+begin_src emacs-lisp (use-package org-mime :after (org mu4e) - :config (setq org-mime-library 'mml)) + :config + (setq org-mime-library 'mml) + (setq org-mime-export-options '(:section-numbers nil + :with-author nil + :with-toc nil)) #+end_src Mu4e displays a message in the minibuffer after refreshing. And since I run mbsync and mu index (through emacsclient) automatically every few minutes these messages can get quite distracting. Luckily mu4e provides an option to disable these index messages. From e89fbd36a558926a718d6090cbefe9e7d90366cd Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 18:04:47 +0100 Subject: [PATCH 29/29] =?UTF-8?q?=F0=9F=94=A7=20(org-mime)=20Enable=20auto?= =?UTF-8?q?matic=20htmlize=20at=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.org b/config.org index 7d19b26..9e2f3ff 100644 --- a/config.org +++ b/config.org @@ -2788,6 +2788,10 @@ The [[https://github.com/org-mime/org-mime][org-mime]] package thankfully allows (setq org-mime-export-options '(:section-numbers nil :with-author nil :with-toc nil)) + (defun my/org-mime-htmlize () + (when mmk2410/work + (org-mime-htmlize))) + :hook (message-send . my/org-mime-htmlize)) #+end_src Mu4e displays a message in the minibuffer after refreshing. And since I run mbsync and mu index (through emacsclient) automatically every few minutes these messages can get quite distracting. Luckily mu4e provides an option to disable these index messages.