emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/reformatter 0aea1debd1 05/81: package-lint fixes, primaril


From: ELPA Syncer
Subject: [nongnu] elpa/reformatter 0aea1debd1 05/81: package-lint fixes, primarily renaming define-formatter
Date: Tue, 5 Sep 2023 04:03:32 -0400 (EDT)

branch: elpa/reformatter
commit 0aea1debd1e9a4d7630bebc6f5634e44f1f20d06
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    package-lint fixes, primarily renaming define-formatter
---
 README.md      | 6 +++---
 reformatter.el | 9 +++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 1120373015..ac5782a282 100644
--- a/README.md
+++ b/README.md
@@ -21,13 +21,13 @@ dhall executable:
 ```el
 ;;;###autoload (autoload 'dhall-format "current-file" nil t)
 ;;;###autoload (autoload 'dhall-format-on-save-mode "current-file" nil t)
-(define-reformatter dhall-format
+(reformatter-define dhall-format
   :program dhall-command
   :args '("format")
   :lighter 'DF)
 ```
 
-The `define-reformatter` macro expands to code which generates both
+The `reformatter-define` macro expands to code which generates both
 the `dhall-format` interactive command and a local minor mode called
 `dhall-format-on-save-mode`.  The example above includes autoloads
 which will be useful to library authors.
@@ -43,7 +43,7 @@ above example might add the following to a project-specific
    (mode . dhall-format-on-save-mode)))
 ```
 
-See the documentation for `define-reformatter`, which provides a
+See the documentation for `reformatter-define`, which provides a
 number of options for customising the generated code.
 
 ## Rationale
diff --git a/reformatter.el b/reformatter.el
index 9d84c2d661..61aa974285 100644
--- a/reformatter.el
+++ b/reformatter.el
@@ -4,6 +4,7 @@
 
 ;; Author: Steve Purcell <steve@sanityinc.com>
 ;; Keywords: convenience, tools
+;; Homepage: https://github.com/purcell/reformatter.el
 ;; Package-Requires: ((emacs "24.3"))
 ;; Package-Version: 0
 
@@ -38,11 +39,11 @@
 
 ;;     ;;;###autoload (autoload 'dhall-format "current-file" nil t)
 ;;     ;;;###autoload (autoload 'dhall-format-on-save-mode "current-file" nil 
t)
-;;     (define-reformatter dhall-format
+;;     (reformatter-define dhall-format
 ;;       :program dhall-command
 ;;       :args '("format"))
 
-;; The `define-reformatter' macro expands to code which generates both
+;; The `reformatter-define' macro expands to code which generates both
 ;; the `dhall-format' interactive command and a local minor mode
 ;; called `dhall-format-on-save-mode'.  The example above includes
 ;; autoloads which will be useful to library authors.
@@ -56,7 +57,7 @@
 ;;     ((dhall-mode
 ;;       (mode . dhall-format-on-save-mode)))
 
-;; See the documentation for `define-reformatter', which provides a
+;; See the documentation for `reformatter-define', which provides a
 ;; number of options for customising the generated code.
 
 ;;; Code:
@@ -65,7 +66,7 @@
 (require 'ansi-color)
 
 ;;;###autoload
-(cl-defmacro define-reformatter (name &key program args (mode t) lighter 
keymap)
+(cl-defmacro reformatter-define (name &key program args (mode t) lighter 
keymap)
   "Define a reformatter command with NAME.
 
 When called, the reformatter will use PROGRAM and any ARGS to



reply via email to

[Prev in Thread] Current Thread [Next in Thread]