All Projects → bbatsov → Super Save

bbatsov / Super Save

Save Emacs buffers when they lose focus

Projects that are alternatives of or similar to Super Save

Frontmacs
Package-based, web-centric, customizable, awesome-by-default, acceptance-tested Emacs distribution
Stars: ✭ 445 (+141.85%)
Mutual labels:  emacs, emacs-packages
Emacs.g
The Emacs Collective
Stars: ✭ 51 (-72.28%)
Mutual labels:  emacs, emacs-packages
God Mode
Minor mode for God-like command entering
Stars: ✭ 570 (+209.78%)
Mutual labels:  emacs, emacs-packages
Evil Multiedit
Multiple cursors for evil-mode, based on iedit
Stars: ✭ 200 (+8.7%)
Mutual labels:  emacs, emacs-packages
Emacs Gdscript Mode
An Emacs package to get GDScript support and syntax highlighting.
Stars: ✭ 132 (-28.26%)
Mutual labels:  emacs, emacs-packages
Uncledavesemacs
My personal ~/.emacs.d
Stars: ✭ 204 (+10.87%)
Mutual labels:  emacs, emacs-packages
Perfect Margin
[emacs] auto center emacs windows, work with minimap and/or linum-mode
Stars: ✭ 26 (-85.87%)
Mutual labels:  emacs, emacs-packages
Smart Mode Line
A powerful and beautiful mode-line for Emacs.
Stars: ✭ 809 (+339.67%)
Mutual labels:  emacs, emacs-packages
Emacs Solaire Mode
If only certain buffers could be so grossly incandescent.
Stars: ✭ 129 (-29.89%)
Mutual labels:  emacs, emacs-packages
Org Pandoc Import
Save yourself from non-org formats, thanks to pandoc
Stars: ✭ 111 (-39.67%)
Mutual labels:  emacs, emacs-packages
Emacs Vdiff
Like vimdiff for Emacs
Stars: ✭ 165 (-10.33%)
Mutual labels:  emacs, emacs-packages
Borg
Assimilate Emacs packages as Git submodules
Stars: ✭ 145 (-21.2%)
Mutual labels:  emacs, emacs-packages
Evil Snipe
2-char searching ala vim-sneak & vim-seek, for evil-mode
Stars: ✭ 196 (+6.52%)
Mutual labels:  emacs, emacs-packages
Academic Phrases
Bypass that mental block when writing your papers.
Stars: ✭ 244 (+32.61%)
Mutual labels:  emacs, emacs-packages
Emacs Which Key
Emacs package that displays available keybindings in popup
Stars: ✭ 1,136 (+517.39%)
Mutual labels:  emacs, emacs-packages
Elpa
Emacs China ELPA 镜像
Stars: ✭ 137 (-25.54%)
Mutual labels:  emacs, emacs-packages
Org Msg
OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
Stars: ✭ 153 (-16.85%)
Mutual labels:  emacs, emacs-packages
Es Mode
An Emacs major mode for interacting with Elasticsearch
Stars: ✭ 176 (-4.35%)
Mutual labels:  emacs
Nodejs Repl.el
Run Node.js REPL and communicate with the process
Stars: ✭ 163 (-11.41%)
Mutual labels:  emacs
Emacs Flymake
Continuous syntax checking for Emacs. Fork to add max parallel invocations and other bug fixes.
Stars: ✭ 162 (-11.96%)
Mutual labels:  emacs

License GPL 3 MELPA MELPA Stable

super-save

super-save auto-saves your buffers, when certain events happen - e.g. you switch between buffers, an Emacs frame loses focus, etc. You can think of it as both something that augments and replaces the standard auto-save-mode.

Installation

Available on all major package.el community maintained repos - MELPA Stable and MELPA repos.

MELPA Stable is recommended as it has the latest stable version. MELPA has a development snapshot for users who don't mind breakage but don't want to run from a git checkout.

You can install super-save using the following command:

M-x package-install [RET] super-save [RET]

or if you'd rather keep it in your dotfiles:

(unless (package-installed-p 'super-save)
  (package-refresh-contents)
  (package-install 'super-save))

If the installation doesn't work try refreshing the package list:

M-x package-refresh-contents

use-package

If you're into use-package you can use the following snippet:

(use-package super-save
  :ensure t
  :config
  (super-save-mode +1))

Emacs Prelude

super-save started its life as the extraction of a similar functionality I had originally developed for Emacs Prelude and the package is bundled with Prelude.

Usage

Add the following to your Emacs config to enable super-save:

(super-save-mode +1)

If you want to enable the additional feature of auto-saving buffers when Emacs is idle, add the following as well:

(setq super-save-auto-save-when-idle t)

At this point you can probably switch off the built-in auto-save-mode (unless you really care about its backups):

(setq auto-save-default nil)

Configuration

super-save will save files on command (e.g. switch-to-buffer) and hook triggers (e.g. focus-out-hook).

Both of those are configurable via super-save-triggers and super-save-hook-triggers. Here's a couple of examples:

;; add integration with ace-window
(add-to-list 'super-save-triggers 'ace-window)

;; save on find-file
(add-to-list 'super-save-hook-triggers 'find-file-hook)

You can turn off super-save for remote files like this:

(setq super-save-remote-files nil)

Sometimes you might want to exclude specific files from super-save. You can achieve this via super-save-exclude, for example:

(setq super-save-exclude '(".gpg"))

License

Copyright © 2015-2020 Bozhidar Batsov and contributors.

Distributed under the GNU General Public License; type C-h C-c to view it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].