From ba2d6bd3a72d864a58c252cf8e67d0e88f55346e Mon Sep 17 00:00:00 2001
From: finga <finga@onders.org>
Date: Tue, 28 May 2024 11:11:54 +0200
Subject: [PATCH 1/2] pass: Merge config of pass into the use-package block

Merge the configuration of pass into the use-package block.
---
 .emacs.d/config/pass.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.emacs.d/config/pass.el b/.emacs.d/config/pass.el
index ebbc24f..5c0c867 100644
--- a/.emacs.d/config/pass.el
+++ b/.emacs.d/config/pass.el
@@ -2,7 +2,7 @@
   :ensure t
   :init
   ;; from https://github.com/ecraven/ivy-pass/blob/master/ivy-pass.el
-  (setq password-store-password-length 32))
-
-;; configure ivy-pass key binding
-(global-set-key [?\C-x ?p] 'ivy-pass)
+  (setq password-store-password-length 32)
+  :config
+  ;; configure ivy-pass key binding
+  (global-set-key [?\C-x ?p] 'ivy-pass))

From faa5a9908ff76e3e136ab5bda5f98588907b4633 Mon Sep 17 00:00:00 2001
From: finga <finga@onders.org>
Date: Tue, 28 May 2024 11:14:21 +0200
Subject: [PATCH 2/2] man: Add config for man

Add a configuration for man so that the man-pages are shown in color.
---
 .emacs.d/config/man.el | 5 +++++
 .emacs.d/init.el       | 2 +-
 .gitignore.d/emacs     | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 .emacs.d/config/man.el

diff --git a/.emacs.d/config/man.el b/.emacs.d/config/man.el
new file mode 100644
index 0000000..413142f
--- /dev/null
+++ b/.emacs.d/config/man.el
@@ -0,0 +1,5 @@
+(use-package man
+  :ensure t
+  :config
+  (set-face-attribute 'Man-overstrike nil :inherit font-lock-type-face :bold t)
+  (set-face-attribute 'Man-underline nil :inherit font-lock-keyword-face :underline t))
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 1703c22..d0927e6 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -57,7 +57,7 @@ symbols, which are converted to strings, and suffixed with \".el\"."
   :group 'config-snippets
   :type '(repeat directory))
 
-(setq config-snippets '(base backups c calendar dev functions git gpg org pass ripgrep rust wl yaml))
+(setq config-snippets '(base backups c calendar dev functions git gpg man org pass ripgrep rust wl yaml))
 
 (message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path)
 (dolist (snippet config-snippets)
diff --git a/.gitignore.d/emacs b/.gitignore.d/emacs
index 5468ecf..2cc5380 100644
--- a/.gitignore.d/emacs
+++ b/.gitignore.d/emacs
@@ -7,6 +7,7 @@
 !/.emacs.d/config/functions.el
 !/.emacs.d/config/git.el
 !/.emacs.d/config/gpg.el
+!/.emacs.d/config/man.el
 !/.emacs.d/config/org.el
 !/.emacs.d/config/pass.el
 !/.emacs.d/config/ripgrep.el