[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/topspace f15aea8579 016/181: Remove unused private vari
From: |
ELPA Syncer |
Subject: |
[elpa] externals/topspace f15aea8579 016/181: Remove unused private variables and add .dir-locals.el |
Date: |
Tue, 23 Aug 2022 12:58:29 -0400 (EDT) |
branch: externals/topspace
commit f15aea85798062df3087bf9de40b1c5211b94510
Author: Trevor Pogue <poguete@mcmaster.ca>
Commit: Trevor Pogue <poguete@mcmaster.ca>
Remove unused private variables and add .dir-locals.el
---
.dir-locals.el | 2 ++
README.md | 30 ++++--------------------------
topspace.el | 5 +++--
3 files changed, 9 insertions(+), 28 deletions(-)
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000000..83a5eaa381
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,2 @@
+((emacs-lisp-mode
+ (indent-tabs-mode nil)))
diff --git a/README.md b/README.md
index 372dfc0848..05d433fa67 100644
--- a/README.md
+++ b/README.md
@@ -4,14 +4,14 @@
![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`,
or `recenter` as the underlying primitives for scrolling. This includes all
-scrolling commands/functions available in Emacs that the author is aware of.
+scrolling commands/functions available in Emacs as far as the author is aware.
-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!
+Bonus: If you use [`centered-cursor-mode`][1], this means that `topspace` will
automatically let you center the cursor all the way to the top line!
# Customization
@@ -46,27 +46,5 @@ 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]: -->
-<!-- ``` -->
-<!-- (use-package topspace :load-path "<directory>") -->
-<!-- ``` -->
-
-<!-- Above, `<directory>` should be the path to the directory in which you
saved the `"topspace.el"` file. -->
-
-<!-- # Usage -->
-<!-- After restarting Emacs, you can now activate or deactivate the mode by
typing <kbd>M-x topspace-mode</kbd>. -->
-
-<!-- You can also globally enable the minor mode either manually by typing
<kbd>M-x global-topspace-mode</kbd>, or on init by changing the `use-package`
code to the following to your init file: -->
-
-<!-- ``` -->
-<!-- (use-package topspace -->
-<!-- :load-path "<directory>" -->
-<!-- :config (global-topspace-mode)) -->
-<!-- ``` -->
-
-
- [1]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html
- [2]: https://github.com/jwiegley/use-package
- [3]: https://github.com/emacsmirror/centered-cursor-mode
+ [1]: https://github.com/andre-r/centered-cursor-mode.el
diff --git a/topspace.el b/topspace.el
index 522a7b01a9..9670ae114e 100644
--- a/topspace.el
+++ b/topspace.el
@@ -41,12 +41,13 @@
(defvar-local topspace--heights '())
(defvar-local topspace--autocenter-heights '())
(defvar-local topspace--previous-window-heights '())
-(defvar-local topspace--current-line-numbers '())
+
(defvar-local topspace--window-start-before-scroll 2)
(defvar-local topspace--total-lines-scrolling 0)
+
(defvar-local topspace--pre-command-point 1)
(defvar-local topspace--pre-command-window-start 2)
-(defvar-local topspace--total-lines-before-change 0)
+
(defvar-local topspace--enabled nil)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- [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 <=
- [elpa] externals/topspace 50aae1cbdd 011/181: Update README.md, ELPA Syncer, 2022/08/23
- [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