[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/topspace 50aae1cbdd 011/181: Update README.md
From: |
ELPA Syncer |
Subject: |
[elpa] externals/topspace 50aae1cbdd 011/181: Update README.md |
Date: |
Tue, 23 Aug 2022 12:58:28 -0400 (EDT) |
branch: externals/topspace
commit 50aae1cbdde72409e166fada69ba43d7d15aae40
Author: Trevor Pogue <poguete@mcmaster.ca>
Commit: GitHub <noreply@github.com>
Update README.md
---
README.md | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index be50e0337e..372dfc0848 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
![topspace](https://user-images.githubusercontent.com/12535207/154770200-0b3edcd8-8036-40c7-910f-d5b3a1c3b4df.gif)
-`topspace` is an emacs minor mode that lets you scroll above the top line to
vertically center top text.
+TopSpace is an emacs minor mode that lets you scroll above the top line to
vertically center top text.
No new keybindings are required as `topspace` automatically works for any
commands or subsequent function calls which use `scroll-up`, `scroll-down`,
@@ -13,6 +13,38 @@ scrolling commands/functions available in Emacs that the
author is aware of.
Bonus: If you use [`centered-cursor-mode`][3], this means that `topspace` will
automatically let you center the cursor all the way to the top line!
+# Customization
+
+```
+(defcustom topspace-autocenter-buffers
+ t
+ "Vertically center small buffers when first opened or window sizes change."
+ :group 'topspace
+ :type 'boolean)
+
+(defcustom topspace-center-position
+ 0.5
+ "Suggested position when centering buffers as a ratio of frame height.
+A value from 0 to 1 where lower values center buffers higher up in the screen.
+
+Used in `topspace-recenter-buffer' when called or when opening/resizing buffers
+if `topspace-autocenter-buffers' is non-nil."
+ :group 'topspace
+ :type 'float)
+```
+
+# Extra commands
+
+### `topspace-recenter-buffer`:
+
+Add enough top space in the selected window to center small buffers.
+
+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.
+
+Customize `topspace-center-position` to adjust the centering position.
+Customize `topspace-autocenter-buffers` to run this command automatically
+after first opening buffers and after window sizes change.
<!-- # Installation -->
<!-- Save the file from this repository named `"topspace.el"` into a directory
of your choice, then install it using [`use-package`][2] by adding the
following lines to your [`init file`][1]: -->
- [elpa] branch externals/topspace created (now fa67b67e1a), ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 79aa4e78d3 001/181: Initial commit, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace ca7a6ba61a 004/181: fixed typo in README instruction, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace a4e61e164a 008/181: Update README.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 42353585e0 005/181: Minor code improvements from the "low hanging fruit" in initial commit:, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 40cf3cfe5f 007/181: Update README.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 8ce487bd3d 014/181: Merge pull request #1 from trevorpogue/dev, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace f15aea8579 016/181: Remove unused private variables and add .dir-locals.el, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 50aae1cbdd 011/181: Update README.md,
ELPA Syncer <=
- [elpa] externals/topspace d8ba41b20e 020/181: Make topspace-enable and topspace-disable private functions, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 694c10574c 012/181: Update topspace.el, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 09d47d32b8 023/181: Add MELPA badge and installation instructions, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 512893f002 021/181: Provide documentation strings for private variables, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 976971f4a9 024/181: Add clarification to Installation steps, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace f36c0e28af 025/181: Add MELPA Stable badge, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 73cb30dc10 028/181: Add more info on how it works to README, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 8591032298 029/181: Add to package motivation in README, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace a76d4f3612 031/181: Update to more clear GIF in README, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 4eb27abaa1 034/181: Prevent top space from all suddenly disappearing when visual-line-mode is enabled and cursor scrolls bellow screen with top space present, ELPA Syncer, 2022/08/23