mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||
|
4
modules/ui/smooth-scroll/doctor.el
Normal file
4
modules/ui/smooth-scroll/doctor.el
Normal 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"))
|
Reference in New Issue
Block a user