[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/topspace bb73278f40 170/181: Update description
From: |
ELPA Syncer |
Subject: |
[elpa] externals/topspace bb73278f40 170/181: Update description |
Date: |
Tue, 23 Aug 2022 12:58:48 -0400 (EDT) |
branch: externals/topspace
commit bb73278f40c2537f8385a70857d7429bd5952701
Author: Trevor Pogue <poguete@mcmaster.ca>
Commit: Trevor Pogue <poguete@mcmaster.ca>
Update description
---
README.md | 8 +++++---
topspace.el | 36 +++++++++++++++++++++---------------
2 files changed, 26 insertions(+), 18 deletions(-)
diff --git a/README.md b/README.md
index 5b5932c60f..d10cb0a44f 100644
--- a/README.md
+++ b/README.md
@@ -21,8 +21,10 @@
<a href="https://github.com/trevorpogue/topspace#extra-functions"> Extra
functions</a> |
<a href="https://github.com/trevorpogue/topspace#how-it-works"> How it
works </a> ]
-TopSpace is an Emacs minor mode that allows you to scroll down and recenter
top lines by automatically drawing an upper margin/padding above the top line
-as you scroll down or recenter top text.
+TopSpace is an Emacs minor mode that provides the ability to scroll down the
first line of a buffer to be below the very top of the window, as if the buffer
contains additional blank lines above the first line.
+This is done by automatically drawing an upper margin/padding above line 1
+as you recenter and scroll down top text, without modifying the
+underlying file.
### Features
@@ -80,7 +82,7 @@ This is done by automatically calling
`topspace-recenter-buffer'
and the positioning can be customized with `topspace-center-position'.
Top space will not be added if the number of text lines in the buffer is larger
than or close to the selected window's height, or if `window-start' is greater
-than 1. Customize `topspace-center-position' to adjust the centering position.
+than 1.
With the default value, buffers will not be centered if in a child frame
or if the user has already scrolled or used `recenter' with buffer in the
diff --git a/topspace.el b/topspace.el
index 8020e0d09a..a6a9785ce1 100644
--- a/topspace.el
+++ b/topspace.el
@@ -1,4 +1,4 @@
-;;; topspace.el --- Scroll down & recenter top lines / get upper
margins/padding -*- lexical-binding: t -*-
+;;; topspace.el --- Scroll down & recenter line 1 to be below the top of the
window using upper margin/padding -*- lexical-binding: t -*-
;; Copyright (C) 2021-2022 Free Software Foundation, Inc.
@@ -26,9 +26,14 @@
;;; Commentary:
-;; TopSpace allows you to scroll down and recenter top lines
-;; by automatically drawing an upper margin/padding above the top line
-;; as you scroll down or recenter top text.
+;; TopSpace provides the ability to scroll down the first line of a buffer
+;; to be below the very top of the window, as if the buffer contains
+;; additional blank lines above the first line.
+;; This is done by automatically drawing an upper margin/padding above line 1
+;; as you recenter and scroll down top text, without modifying the
+;; underlying file.
+
+;; See https://github.com/trevorpogue/topspace for a gif demo & documentation.
;; Features:
@@ -43,6 +48,7 @@
;; centered all the way to the top line.
;; How it works:
+
;; The "upper margin" is created by drawing an overlay before
;; window-start containing newline characters. As you scroll above the
;; top line, more newline characters are added or removed accordingly.
@@ -57,9 +63,6 @@
;; each time any of these other commands are called (interactively or
;; otherwise).
-;; See the readme at https://github.com/trevorpogue/topspace for more
-;; information.
-
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -148,7 +151,7 @@ This is done by automatically calling
`topspace-recenter-buffer'
and the positioning can be customized with `topspace-center-position'.
Top space will not be added if the number of text lines in the buffer is larger
than or close to the selected window's height, or if `window-start' is greater
-than 1. Customize `topspace-center-position' to adjust the centering position.
+than 1.
With the default value, buffers will not be centered if in a child frame
or if the user has already scrolled or used `recenter' with buffer in the
@@ -768,11 +771,16 @@ Topspace will not be enabled for:
;;;###autoload
(define-minor-mode topspace-mode
- "Scroll down & recenter top lines / get upper margins/padding.
+ "Scroll down & recenter line 1 to be below the top of the window.
-TopSpace allows you to scroll down and recenter top lines
-by automatically drawing an upper margin/padding above the top line
-as you scroll down or recenter top text.
+TopSpace provides the ability to scroll down the first line of a buffer
+to be below the very top of the window, as if the buffer contains
+additional blank lines above the first line.
+This is done by automatically drawing an upper margin/padding above line 1
+as you recenter and scroll down top text, without modifying the
+underlying file.
+
+See https://github.com/trevorpogue/topspace for a gif demo & documentation.
Features:
@@ -787,6 +795,7 @@ Features:
centered all the way to the top line.
How it works:
+
The \"upper margin\" is created by drawing an overlay before
window-start containing newline characters. As you scroll above the
top line, more newline characters are added or removed accordingly.
@@ -801,9 +810,6 @@ commands so that custom topspace functions are called
before or after
each time any of these other commands are called (interactively or
otherwise).
-See the readme at https://github.com/trevorpogue/topspace for more
-information.
-
Enabling/disabling:
When called interactively, toggle `topspace-mode'.
- [elpa] externals/topspace 186ea6091a 148/181: Internal optimizations and refactoring, (continued)
- [elpa] externals/topspace 186ea6091a 148/181: Internal optimizations and refactoring, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace bc35cd92d5 149/181: Update test.yml, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 5c2b095a13 150/181: Update cached coveralls badge, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 50ca92c72d 152/181: Update cached coveralls badge, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace ce7fc98008 153/181: Internal refactoring, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 86127bf20f 160/181: Performance optimization, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 543f835124 163/181: Set NEWS version head back to Unreleased, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 6f5d60ea36 166/181: Update NEWS.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace dd7d35b52d 168/181: Fix links in CONTRIBUTING.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 6692cd1346 169/181: Performance optimization, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace bb73278f40 170/181: Update description,
ELPA Syncer <=
- [elpa] externals/topspace 9dd0ce4d42 172/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace d364f55550 173/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace be86d5ba9b 180/181: Prevent line `1` indicator sometimes displaying too high in `linum-mode` (#22), ELPA Syncer, 2022/08/23
- [elpa] externals/topspace ccc5c23731 176/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 0399f73f9b 179/181: Update description, ELPA Syncer, 2022/08/23