From 5ae6b650b451f6cd791fd0f8b5b5c1a1cbb68528 Mon Sep 17 00:00:00 2001 From: noa Date: Tue, 17 Sep 2024 10:29:38 +0800 Subject: Remove configuration to flash the current line when the active window configuration changes --- emacs/init.el | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index 057c81f..9b75f87 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -105,17 +105,6 @@ ;; Ensure that transients look nice with a variable pitch font. (setopt transient-align-variable-pitch t) -;;; Flash the current line -;; This function was taken from a karthinks blog post. Previously i was using an external package, [[https://github.com/Malabarba/beacon][beacon]], and i still think that functions better. But this is adequate enough that i'm happy. - -;; I'd like to change the face, but ~pulse-highlight-face~ has *DO NOT CUSTOMIZE* in the docstring so what am i meant to do!? - -(defun pulse-line (&rest _) - "Pulse the current line." - (pulse-momentary-highlight-one-line (point))) -(dolist (command '(scroll-up-command scroll-down-command recenter-top-bottom other-window)) - (advice-add command :after #'pulse-line)) - ;;; Make wide windows narrow with visual-fill-column ;; Reading prose with long lines is a chore. Luckily there are several packages in emacs to make the windows squeeze text into a more legible sliver. Previously i used olivetti, which is a really nice package, but it's quite heavyweight and broke on me with no explanation more frequently than i appreciated. I've switched to visual-fill-column and been quite satisfied. -- cgit 1.4.1-2-gfad0