diff options
author | noa | 2024-09-17 10:29:38 +0800 |
---|---|---|
committer | noa | 2024-09-17 10:29:38 +0800 |
commit | 5ae6b650b451f6cd791fd0f8b5b5c1a1cbb68528 (patch) | |
tree | 7f0a5984b030ac6a3fb44b4dab004808d629fa4a | |
parent | f365fce8282147a6425a6964036022880d646d25 (diff) |
Remove configuration to flash the current line when the active window configuration changes
-rw-r--r-- | emacs/init.el | 11 |
1 files changed, 0 insertions, 11 deletions
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. |