diff --git a/README.md b/README.md new file mode 100644 index 0000000..52e59ac --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# async-backup +Donate using Liberapay + +Emacs has a built-in backup system, but it does not backup on each +save. It can be made to, but that makes saving really slow (and the +UI unresponsive), especially for large files. + +Fortunately, Emacs has asynchronous processes. + +To enable for all files - + `(add-hook 'after-save-hook #'async-backup)` + +To enable for a specific file - + `M-x add-file-local-variable RET eval RET (add-hook 'after-save-hook #'async-backup nil t) RET` + +# License +Chronometrist is released under your choice of [Unlicense](https://unlicense.org/) or the [WTFPL](http://www.wtfpl.net/). + +(See files [UNLICENSE](UNLICENSE) and [WTFPL](WTFPL)). diff --git a/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..fdddb29 --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/WTFPL b/WTFPL new file mode 100644 index 0000000..c6c7def --- /dev/null +++ b/WTFPL @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/async-backup.el b/async-backup.el index 222e1bd..e1a2c66 100644 --- a/async-backup.el +++ b/async-backup.el @@ -28,6 +28,8 @@ ;; `(add-hook 'after-save-hook #'async-backup)' ;; To enable for a specific file - ;; `M-x add-file-local-variable RET eval RET (add-hook 'after-save-hook #'async-backup nil t) RET' +;; +;; See the full documentation at ;;; Code: (require 'cl-lib)