emacs: install ultra-scroll
Alan Pearce alan@alanpearce.eu
Sat, 25 Jan 2025 21:31:28 +0100
2 files changed, 25 insertions(+), 0 deletions(-)
M user/emacs/init.el → user/emacs/init.el
@@ -167,6 +167,13 @@ (add-hook 'evil-insert-state-entry-hook #'noct-absolute) (add-hook 'evil-insert-state-exit-hook #'noct-relative) +(use-package ultra-scroll + :defer 1 + :config (progn + (setq scroll-margin 0 + scroll-conservatively 101) + (ultra-scroll-mode +1))) + ;;; Encoding (setq-default bidi-paragraph-direction 'left-to-right
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -159,6 +159,7 @@ treemacs-nerd-icons treesit-grammars.with-all-grammars treesit-auto try + ultra-scroll vc-msg vertico vertico-prescient @@ -169,6 +170,23 @@ yasnippet yasnippet-capf ]); overrides = self: super: { + ultra-scroll = self.melpaBuild rec { + pname = "ultra-scroll"; + version = "0.3.1"; + + src = pkgs.fetchFromGitHub { + owner = "jdtsmith"; + repo = pname; + rev = "2e3b9997ae1a469e878feaa0af23a23685a0fbed"; + hash = "sha256-9+3T5tXPRuRtENt/Rr0Ss3LZJlTOwpGePbREqofN2j0="; + }; + + meta = { + homepage = "https://github.com/jdtsmith/ultra-scroll"; + description = "scroll emacs like lightning"; + license = pkgs.lib.licenses.gpl3; + }; + }; apheleia = self.melpaPackages.apheleia.overrideAttrs (old: { patchPhase = ''