From c34d8a4615f6c60b2ea216bcdd51d3984fb7ce93 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 1 Nov 2024 16:55:42 +0100 Subject: emacs: Configure pulsar colors --- .config/emacs/modules/mm-theme.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '.config/emacs/modules') diff --git a/.config/emacs/modules/mm-theme.el b/.config/emacs/modules/mm-theme.el index 3d4d9b6..3068b15 100644 --- a/.config/emacs/modules/mm-theme.el +++ b/.config/emacs/modules/mm-theme.el @@ -145,22 +145,22 @@ See also the `mm-theme-background-opacity' variable." (use-package pulsar :ensure t + :hook (after-init . pulsar-global-mode) :custom (pulsar-pulse t) (pulsar-delay .05) (pulsar-iterations 10) + (pulsar-face 'hl-line) :config - (add-to-list 'pulsar-pulse-functions #'jump-to-register) - (add-to-list 'pulsar-pulse-functions #'e/scroll-up) - (add-to-list 'pulsar-pulse-functions #'e/scroll-down) + (dolist (command #'(backward-paragraph + e/scroll-down + e/scroll-up + forward-paragraph + jump-to-register + pop-global-mark)) + (add-to-list 'pulsar-pulse-functions command)) ;; Integrate with ‘compilation-mode’ (add-hook 'next-error-hook #'pulsar-pulse-line) - (pulsar-global-mode) - :hook - ((next-error . (pulsar-pulse-line-red - pulsar-recenter-top - pulsar-reveal-entry)) - (minibuffer-setup . pulsar-pulse-line-red)) :bind (("C-c h l" . pulsar-highlight-dwim))) -- cgit v1.2.3