2019-07-07 14:13:57 -07:00
|
|
|
;;; apheleia.el --- Reformat buffer stably -*- lexical-binding: t -*-
|
|
|
|
|
2022-05-09 15:58:41 -07:00
|
|
|
;; Copyright (C) 2019-2022 Radian LLC and contributors
|
2019-07-07 14:13:57 -07:00
|
|
|
|
2022-05-09 15:58:41 -07:00
|
|
|
;; Author: Radian LLC <contact+apheleia@radian.codes>
|
2019-07-07 14:13:57 -07:00
|
|
|
;; Created: 7 Jul 2019
|
|
|
|
;; Homepage: https://github.com/raxod502/apheleia
|
|
|
|
;; Keywords: tools
|
2022-04-10 22:21:50 +01:00
|
|
|
;; Package-Requires: ((emacs "26"))
|
2020-04-04 09:50:44 -06:00
|
|
|
;; SPDX-License-Identifier: MIT
|
2023-02-25 11:31:26 -08:00
|
|
|
;; Version: 3.2
|
2019-07-07 14:13:57 -07:00
|
|
|
|
|
|
|
;;; 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:
|
|
|
|
|
2023-03-12 10:22:36 +00:00
|
|
|
(require 'apheleia-core)
|
2021-11-21 18:45:50 +00:00
|
|
|
|
2019-07-07 14:13:57 -07:00
|
|
|
(defgroup apheleia nil
|
2019-07-10 19:04:02 -07:00
|
|
|
"Reformat buffer without moving point."
|
2019-07-07 14:13:57 -07:00
|
|
|
:group 'external
|
|
|
|
:link '(url-link :tag "GitHub" "https://github.com/raxod502/apheleia")
|
|
|
|
:link '(emacs-commentary-link :tag "Commentary" "apheleia"))
|
|
|
|
|
|
|
|
(provide 'apheleia)
|
|
|
|
|
|
|
|
;;; apheleia.el ends here
|