Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ChillarAnand/real-auto-save
Automatically save your all your buffers/files at regular intervals in Emacs!
https://github.com/ChillarAnand/real-auto-save
buffers elisp emacs
Last synced: 3 months ago
JSON representation
Automatically save your all your buffers/files at regular intervals in Emacs!
- Host: GitHub
- URL: https://github.com/ChillarAnand/real-auto-save
- Owner: ChillarAnand
- License: gpl-3.0
- Created: 2015-01-28T04:51:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-02T06:57:30.000Z (over 3 years ago)
- Last Synced: 2024-10-11T07:12:19.739Z (3 months ago)
- Topics: buffers, elisp, emacs
- Language: Emacs Lisp
- Homepage:
- Size: 71.3 KB
- Stars: 52
- Watchers: 7
- Forks: 13
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![MELPA](http://melpa.org/packages/real-auto-save-badge.svg)](http://melpa.org/#/real-auto-save)
# real-auto-save
Automatically save your all your files at regular intervals.## Installation
### MELPA
You can install a snapshot of real-auto-save from the [MELPA](http://melpa.org/#/real-auto-save) repository.
### Github
Download `real-auto-save.el` and put this file in a folder where Emacs can find it.
Add following lines to your .emacs initialization file to enable auto save in all programming modes.(require 'real-auto-save)
(add-hook 'prog-mode-hook 'real-auto-save-mode)## Configuration
Auto save interval is 10 seconds by default. You can change it:
(setq real-auto-save-interval 5) ;; in seconds
Emacs 26.1 introduced `auto-save-visited-mode`. But that new mode is global, and saves *all* buffers. For a more limited solution, use `real-auto-save` with a file-local variable or mode hook.
For example, to use this mode only for org files, add this to your Emacs config:
(require 'real-auto-save)
(add-hook 'org-mode-hook 'real-auto-save-mode)By default, real-auto-save mode uses idle timer. If your emacs is idle, after `real-auto-save-interval` seconds it will save buffers.
If you want to save all your buffers, every `real-auto-save-interval` seconds.
## Acknowledgments
Thanks to [Steve Purcell](https://github.com/purcell) for reviewing and providing help with development.
Thanks to all contributors!
## Contribution
- cask
- install via brew
```shell
brew install cask
```- manual install
```shell
cd ~/
hub clone cask/cask
export PATH="$HOME/.cask/bin:$PATH"
```