Fix Emacs configuration

This commit is contained in:
Fabio Scotto di Santolo
2026-07-15 11:51:11 +02:00
parent a4b47e0456
commit fa39a2571b
3 changed files with 32 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
;;; python.el -*- lexical-binding: t; -*-
(require 'reformatter)
(use-package reformatter
:ensure t
:demand t)
(with-eval-after-load 'project
(add-to-list 'project-vc-extra-root-markers "pyproject.toml")

View File

@@ -29,6 +29,20 @@
:hook
(elfeed-show-mode . visual-line-mode))
(use-package evil-collection
:ensure t
:after (evil elfeed)
:config
;; Enable Vim-style keybindings only for elfeed (search + entry views),
;; leaving the rest of the configuration on evil's defaults.
(evil-collection-init (list 'elfeed))
;; Restore the custom "v" -> mpv binding, which evil's normal-state visual
;; selection would otherwise shadow inside elfeed buffers.
(evil-collection-define-key 'normal 'elfeed-search-mode-map
"v" #'elfeed-play-with-mpv)
(evil-collection-define-key 'normal 'elfeed-show-mode-map
"v" #'elfeed-play-with-mpv))
(use-package elfeed-org
:ensure t
:after elfeed