https://github.com/myterminal/eagle-eye
A utility to zoom-in and zoom-out while editing text
https://github.com/myterminal/eagle-eye
emacs text-editing
Last synced: about 1 month ago
JSON representation
A utility to zoom-in and zoom-out while editing text
- Host: GitHub
- URL: https://github.com/myterminal/eagle-eye
- Owner: myTerminal
- License: gpl-3.0
- Created: 2017-08-23T03:23:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T04:51:29.000Z (almost 5 years ago)
- Last Synced: 2026-03-08T04:05:36.278Z (4 months ago)
- Topics: emacs, text-editing
- Language: Emacs Lisp
- Size: 133 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eagle-eye
[](https://marmalade-repo.org/packages/eagle-eye)
[](https://www.gnu.org/licenses/gpl.html)
A utility to zoom-in and zoom-out while editing text

## Installation
### Manual
Save the file *eagle-eye.el* to disk and add the directory containing it to `load-path` using a command in your *.emacs* file like:
(add-to-list 'load-path "~/.emacs.d/")
The above line assumes that you've placed the file into the Emacs directory '.emacs.d'.
Start the package with:
(require 'eagle-eye)
### Marmalade
If you have Marmalade added as a repository to your Emacs, you can just install *eagle-eye* with
M-x package-install eagle-eye RET
## Usage
Enable *eagle-eye-mode* in any buffer to scale down the text in that buffer by set scale. Disabling the minor-mode will bring the text size back to normal.
(eagle-eye-mode)
You can also set key-bindings to functions `eagle-eye-zoom-in' and
`eagle-eye-zoom-out', so that you can change text size across Emacs at once.
(global-set-key (kbd "C->") 'eagle-eye-zoom-in)
(global-set-key (kbd "C-<") 'eagle-eye-zoom-out)
The *eagle-eye* text scaling can be set as
(eagle-eye-set-text-scaling 5)
Also, you can set the step by which zooming in and zooming out happens by
(eagle-eye-set-zoom-step 10)
By default, the *eagle-eye* text scaling is 5 and zoom step is 10.