https://github.com/manateelazycat/auto-save
  
  
    Automatically save files without temporary files to protect your finger. ;) 
    https://github.com/manateelazycat/auto-save
  
        Last synced: 9 months ago 
        JSON representation
    
Automatically save files without temporary files to protect your finger. ;)
- Host: GitHub
 - URL: https://github.com/manateelazycat/auto-save
 - Owner: manateelazycat
 - Created: 2018-12-15T09:00:18.000Z (almost 7 years ago)
 - Default Branch: master
 - Last Pushed: 2023-10-25T10:51:11.000Z (about 2 years ago)
 - Last Synced: 2024-12-30T19:34:59.904Z (10 months ago)
 - Language: Emacs Lisp
 - Size: 17.6 KB
 - Stars: 88
 - Watchers: 4
 - Forks: 18
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 
 
Awesome Lists containing this project
README
          # What is auto-save ?
* Automatically save file content
* No annoying temporary files need to be cleaned
* No need to save manually, protect your fingers.
## Installation
Clone or download this repository (path of the folder is the `` used below).
In your `~/.emacs`, add the following three lines:
```Elisp
(add-to-list 'load-path "") ; add auto-save to your load-path
(require 'auto-save)
(auto-save-enable)
(setq auto-save-silent t)   ; quietly save
(setq auto-save-delete-trailing-whitespace t)  ; automatically delete spaces at the end of the line when saving
;;; custom predicates if you don't want auto save.
;;; disable auto save mode when current filetype is an gpg file.
(setq auto-save-disable-predicates
      '((lambda ()
      (string-suffix-p
      "gpg"
      (file-name-extension (buffer-name)) t))))
```