From 0339abfa8c9cece6a9f856be131632ee8331c167 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 28 Jun 2021 11:30:10 +0200 Subject: git: always sign commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also affects Magit, which needed to have a higher transient default level so the -S option of the commit panel was available. Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 3 ++- .gitconfig | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index ba1f29b..56d732d 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1182,7 +1182,8 @@ Last but not least, =evil-numbers= brings a couple of bindings available on Vim :ensure t :config (global-set-key (kbd "C-x g") 'magit-status) - (global-set-key (kbd "C-c l") 'magit-log-buffer-file)) + (global-set-key (kbd "C-c l") 'magit-log-buffer-file) + (setq transient-default-level 5)) #+END_SRC =git-timemachine= is a package that goes hand-in-hand with Magit, and it provides a very easy way to go through the history of a file (while providing ways of jumping into Magit). You can enter it with @@html:C-x t m@@ (hopefully the mnemonic is self-evident). diff --git a/.gitconfig b/.gitconfig index f4bc338..36bda20 100644 --- a/.gitconfig +++ b/.gitconfig @@ -36,3 +36,6 @@ [init] defaultBranch = main + +[commit] + gpgsign = true \ No newline at end of file -- cgit v1.2.3