fix(smooth-scroll): add Emacs 29 check

This package requires 29+ and will fail otherwise (it depends on
pixel-scroll-precision-mode).
This commit is contained in:
Henrik Lissner
2025-04-02 17:15:36 -04:00
parent 5fae69b7bf
commit 63c29561df
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
;;; ui/smooth-scroll/config.el -*- lexical-binding: t; -*-
(use-package! ultra-scroll
:when (fboundp 'pixel-scroll-precision-mode)
:hook (doom-first-input . ultra-scroll-mode)
:hook (doom-first-file . ultra-scroll-mode)
:init

View File

@ -0,0 +1,4 @@
;;; ui/smooth-scroll/doctor.el -*- lexical-binding: t; -*-
(unless (fboundp 'pixel-scroll-precision-mode)
(error! "Emacs <= 29 detected. The :ui smooth-scroll module will not function"))