diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..04067ab --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +# MIT License + +Copyright (c) 2019 Radon Rosborough + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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 OR COPYRIGHT HOLDERS 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. diff --git a/apheleia.el b/apheleia.el new file mode 100644 index 0000000..5d874f8 --- /dev/null +++ b/apheleia.el @@ -0,0 +1,39 @@ +;;; apheleia.el --- Reformat buffer stably -*- lexical-binding: t -*- + +;; Copyright (C) 2019 Radon Rosborough + +;; Author: Radon Rosborough +;; Created: 7 Jul 2019 +;; Homepage: https://github.com/raxod502/apheleia +;; Keywords: tools +;; Package-Requires: ((emacs "25.2")) +;; Version: 0 + +;;; Commentary: + +;; Apheleia is an Emacs Lisp package which allows you to reformat a +;; buffer without moving point. This solves the usual problem of +;; running a tool like Prettier or Black on `before-save-hook', namely +;; that it resets point to the beginning of the buffer. Apheleia +;; maintains the position of point relative to its surrounding text +;; even if the buffer is modified by the reformatting. + +;; Please see https://github.com/raxod502/apheleia for more information. + +;;; Code: + +(defgroup apheleia nil + "Better mode lighter overriding." + :group 'external + :link '(url-link :tag "GitHub" "https://github.com/raxod502/apheleia") + :link '(emacs-commentary-link :tag "Commentary" "apheleia")) + +;; TODO + +(provide 'apheleia) + +;; Local Variables: +;; outline-regexp: ";;;;* " +;; End: + +;;; apheleia.el ends here