<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Emacs on …soul, as in software?</title><link>https://blog.pancho.name/tags/emacs/</link><description>Recent content in Emacs on …soul, as in software?</description><generator>Hugo</generator><language>en-us</language><copyright>© 2007-2024 pancho horrillo</copyright><lastBuildDate>Sat, 11 Dec 2021 09:26:00 +0100</lastBuildDate><atom:link href="https://blog.pancho.name/tags/emacs/index.xml" rel="self" type="application/rss+xml"/><item><title>Enabling pinentry in Doom Emacs</title><link>https://blog.pancho.name/posts/enabling-pinentry-in-doom-emacs/</link><pubDate>Sat, 11 Dec 2021 09:26:00 +0100</pubDate><guid>https://blog.pancho.name/posts/enabling-pinentry-in-doom-emacs/</guid><description>I sometimes use emacs remotely via mosh, and in those situations I cannot depend on the graphical pinentry. Fortunately, the pinentry package (available at GNU ELPA) enables emacs to talk the pinentry protocol, and interface with the gpg-agent directly.
I found useful instructions to set it up under Doom Emacs on its GitHub issue #4647, with minor adjustments:
allow-emacs-pinentry Code Snippet 1: ~/.gnupg/gpg-agent.conf (package! pinentry) Code Snippet 2: ~/.config/doom/packages.el (use-package! pinentry :init (setq epg-pinentry-mode `loopback) (pinentry-start)) Code Snippet 3: ~/.</description></item><item><title>Go: replacing gofmt with gofumpt when using lsp-mode</title><link>https://blog.pancho.name/posts/replacing-gofmt-with-gofumpt-when-using-lsp-mode/</link><pubDate>Mon, 06 Dec 2021 12:55:00 +0100</pubDate><guid>https://blog.pancho.name/posts/replacing-gofmt-with-gofumpt-when-using-lsp-mode/</guid><description>gofumpt is a better gofmt, with more strictures, that match my personal taste.
It is available at the AUR for Arch linux users as gofumpt.
Add this to your ~/.config/doom/config.el to instruct lsp-mode to use it.
;; https://pkg.go.dev/mvdan.cc/gofumpt ;; https://github.com/emacs-lsp/lsp-mode/blob/8f9259af6fc80a609c2c068d0f59c371205aca89/clients/lsp-go.el#L246 (setq lsp-go-use-gofumpt t) Code Snippet 1: ~/.config/doom/config.el It is directly supported by gopls, it just need to be told to use it.</description></item></channel></rss>