diff options
Diffstat (limited to 'lisp/user-save.el')
-rw-r--r-- | lisp/user-save.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/user-save.el b/lisp/user-save.el index 33b6f4c..15e61a0 100644 --- a/lisp/user-save.el +++ b/lisp/user-save.el | |||
@@ -1,4 +1,12 @@ | |||
1 | ;;; user-save.el -*- lexical-binding: t; -*- | 1 | ;;; user-save.el --- Do things when explicitly saving files -*- lexical-binding: t; -*- |
2 | |||
3 | ;; Copyright (C) 2021--2022 Case Duckworth <acdw@acdw.net> | ||
4 | ;; URL: ... | ||
5 | ;; Version: 0.1.0 | ||
6 | ;; Package-Requires: ((emacs "24.3")) | ||
7 | ;; Keywords: files | ||
8 | |||
9 | ;;; Commentary: | ||
2 | 10 | ||
3 | ;; Because `super-save-mode' automatically saves every time we move away from a | 11 | ;; Because `super-save-mode' automatically saves every time we move away from a |
4 | ;; buffer, it tends to run a lot of `before-save-hook's that don't need to be | 12 | ;; buffer, it tends to run a lot of `before-save-hook's that don't need to be |
@@ -83,7 +91,7 @@ whether the buffer needs to be saved." | |||
83 | :keymap user-save-mode-map) | 91 | :keymap user-save-mode-map) |
84 | 92 | ||
85 | ;;;###autoload | 93 | ;;;###autoload |
86 | (defun turn-off-user-save-mode () | 94 | (defun user-save-mode-disable () |
87 | "Turn off `user-save-mode' in the current buffer." | 95 | "Turn off `user-save-mode' in the current buffer." |
88 | (user-save-mode -1)) | 96 | (user-save-mode -1)) |
89 | 97 | ||