aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-04-29 16:38:42 -0700
committerGravatar Tom Willemse2026-04-29 16:38:42 -0700
commitab299759733acef669dc3ca5dd3f2a2f1be16b74 (patch)
tree821d5c6412c4414bdde899b93f081d8be63468e3
parent1355d93df3ed9732fd7ed4f41a23ebd99e5b72e8 (diff)
downloadnew-dotfiles-main.tar.gz
new-dotfiles-main.zip
pop-os/emacs: Add stillness-modeHEADmain
-rw-r--r--oni/home/config/pop-os.scm1
-rw-r--r--oni/home/config/pop-os/emacs.el2
-rw-r--r--oni/packages/emacs.scm23
3 files changed, 26 insertions, 0 deletions
diff --git a/oni/home/config/pop-os.scm b/oni/home/config/pop-os.scm
index 80edc2a..f1ae81f 100644
--- a/oni/home/config/pop-os.scm
+++ b/oni/home/config/pop-os.scm
@@ -237,6 +237,7 @@
emacs-flycheck-phpstan
emacs-vue-ts-mode
+ emacs-stillness-mode
shutdown-rofi)))
(services (append
diff --git a/oni/home/config/pop-os/emacs.el b/oni/home/config/pop-os/emacs.el
index c681c94..6418434 100644
--- a/oni/home/config/pop-os/emacs.el
+++ b/oni/home/config/pop-os/emacs.el
@@ -1379,3 +1379,5 @@ Optional argument STOPP means stop on any defect."
(autoload 'vue-ts-mode "vue-ts-mode" nil t)
(add-to-list 'auto-mode-alist (cons (rx ".vue" eos) 'vue-ts-mode))
+
+(stillness-mode)
diff --git a/oni/packages/emacs.scm b/oni/packages/emacs.scm
index 105a855..b992a03 100644
--- a/oni/packages/emacs.scm
+++ b/oni/packages/emacs.scm
@@ -1019,3 +1019,26 @@ enabled.")
(synopsis "Emacs major mode for Vue based on Tree-sitter")
(description "Emacs major mode for Vue based on Tree-sitter")
(license license:gpl3+))))
+
+(define-public emacs-stillness-mode
+ (package
+ (name "emacs-stillness-mode")
+ (version "20250307.1608")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/neeasade/stillness-mode.el")
+ (commit "05029febdb451941ed218e6ddbef5294776e31d4")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06gj5fjjq922fafn2wi8i0c6sx3s95zi17crmgv2dy0k1f4ljvkz"))))
+ (build-system emacs-build-system)
+ (propagated-inputs (list emacs-dash))
+ (home-page "https://github.com/neeasade/stillness-mode.el")
+ (synopsis "Prevent windows from jumping on minibuffer activation")
+ (description
+ "stillness-mode is a minor mode that prevents Emacs from scrolling the main
+editing window when a multi-line minibuffer appears. It automatically adjusts
+point just enough so that Emacs doesn't force a jump in the visible buffer.")
+ (license license:expat)))