aboutsummaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
Commit message (Collapse)AuthorAgeFilesLines
* emacs: set mailbox.org as the default accountMiquel Sabaté Solà2026-07-021-19/+19
| | | | | | | | Also, don't ask for the profile when starting, let's assume the default one. Then, when it actually matters (e.g. composing), mu4e will always ask unless it can figure it out automatically (e.g. reply). Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: add Message-ID in mu4eMiquel Sabaté Solà2026-06-291-0/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: don't trash mu4e messages without the flagMiquel Sabaté Solà2026-02-271-0/+1
| | | | | | | Not entirely sure that solves my issues with trashing lately, but here it goes. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: remove <space>-u bindingMiquel Sabaté Solà2026-02-191-1/+0
| | | | | | I have never really used it, so let's remove some noise. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: avoid adding Makefile projectsMiquel Sabaté Solà2026-02-101-4/+3
| | | | | | | | In projects like Linux this turns out to be troublesome as each subsystem has its own Makefile and then tools like ripgrep narrow down their focus too much when trying to perform Linux-wide searches. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: do not delete sent messages on mailbox.orgMiquel Sabaté Solà2026-01-301-1/+1
| | | | | | | | | | | | | | | | Since GMail copies email to the Sent folder regardless of your mu4e settings, it's usually recommended to configure mu4e sent's behavior to 'delete (thus avoiding duplicate sent messages). But I had sadly copy/pasted the same configuration from GMail into my mailbox settings, where this automatic copying of sent messages does not happen. This went unnoticed because I've sent email from this account mainly to the Linux kernel mailing lists, where you receive a copy from the thread anyways and that wasn't much of a problem. But after noticing a couple of missing sent email, and after some head scratching, I've found the 'delete behavior and reverted to good ol' 'sent. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: add extra root vc markersMiquel Sabaté Solà2026-01-011-0/+7
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: enforce the fill-column value to 75 on gitMiquel Sabaté Solà2025-10-211-1/+8
| | | | | | | | | | | Magit will already default to 75, but set the `git-commit-fill-column' variable just to be safe. Moreover, when editing patch/diff files manually (e.g. editing a cover letter in the context of 'git format-patch --cover-letter'), these rules should also apply. Hence, set 'fill-column' locally to 75 as well. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: prefer emails in plain textMiquel Sabaté Solà2025-10-211-0/+9
| | | | | | | | | Force email apps in GNU Emacs (i.e. mu4e) to "discourage" formats like "text/html" or "text/richtext". This in practice forces email apps to use "text/plain" by default, which is nicer looking in most cases, and I can always switch back to HTML whenever that is not the case. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: Make "Inbox" a favorite bookmarkMiquel Sabaté Solà2025-10-101-7/+8
| | | | | | | | | | Apparently default notifications expect a favorite to be picked among bookmarks. If not, then it picks the one at top, which is basically the last one that was added by the user. Hence, define this bookmark last just so it appears at the top of the main view, and also mark it as "favorite" to double down. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: Add setup for IRCMiquel Sabaté Solà2025-10-021-0/+34
| | | | | | | | Bring back the setup I had in the Doom Emacs days. Indeed I'm not using IRC that much, but the configuration is pretty reliable for whenever I need it. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Add 'fetch-email'Miquel Sabaté Solà2025-09-161-1/+1
| | | | | | | | This is a glorified bash one-liner for fetching my email by syncing each channel via GNU parallel. This speeds up a bit from the usual 'mbsync -a', even if it's not a miracle. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* Pick mssola@mssola.com as the default email from now onMiquel Sabaté Solà2025-09-161-2/+2
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* Add my mailbox.org account into my email setupMiquel Sabaté Solà2025-09-161-3/+25
| | | | | | | This means instructing mbsync on how to fetch email, GNU Emacs on how to index it, and then msmtp on how to deliver it. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: Add LSP mode for C/C++Miquel Sabaté Solà2025-09-161-1/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* emacs: Add Kconfig supportMiquel Sabaté Solà2025-09-131-0/+5
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Add haml-modeMiquel Sabaté Solà2025-07-311-0/+3
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Run rust formatter on saveMiquel Sabaté Solà2025-07-311-1/+2
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Fix execution of my default macro keyMiquel Sabaté Solà2025-07-241-3/+7
| | | | | | | Apparently C-2 was being interpreted as C-@. So, let's move the lambda I was using into a function, so it can be assigned to both bindings. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Bring back Rust supportMiquel Sabaté Solà2025-07-221-0/+7
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Always use crux-move-beginning-of-lineMiquel Sabaté Solà2025-07-161-1/+2
| | | | | | | Bringing back from my old Doom configuration, remap the default's GNU Emacs `move-beginning-of-line` to the more useful crux one. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Bring back org-open-at-point for linksMiquel Sabaté Solà2025-07-141-3/+16
| | | | | | | This was available on my Doom configuration, and I needed it back. Similarly the "TAB" mapping has been brought up as well. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: Display line numbers for markdown and orgMiquel Sabaté Solà2025-07-141-2/+5
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* emacs: There and back againMiquel Sabaté Solà2025-07-081-0/+682
Bring back a hand-rolled GNU Emacs configuration, moving on from Doom Emacs. This is due some recent regressions I've had with my Doom configuration that I was unable to debug/fix. This brings back some much needed simplicity, while having better knowledge on how to keep things modern and snappy. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>