# auto-save **Repository Path**: emacs-hub/auto-save ## Basic Information - **Project Name**: auto-save - **Description**: 此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: https://github.com/manateelazycat/auto-save.git - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-29 - **Last Updated**: 2022-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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)))) ```