branch: externals/calibre
commit d8682121d8c73f92481cf424fef71b63ed9f0d14
Author: Kjartan Óli Ágústsson <[email protected]>
Commit: Kjartan Óli Ágústsson <[email protected]>
Reorder variable declarations
* calibre.el (calibre-libraries, calibre-format-preferences): Move to
the top of the file, to keep defcustoms grouped together.
---
calibre.el | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/calibre.el b/calibre.el
index 6e9b69296a..f2238f116c 100644
--- a/calibre.el
+++ b/calibre.el
@@ -36,11 +36,23 @@
"Interact with a Calibre library."
:group 'emacs)
+(defcustom calibre-format-preferences '(pdf epub)
+ "The preference order of file formats."
+ :type '(repeat (symbol :tag "Format"))
+ :package-version '("calibre" . "0.1.0"))
+
(defcustom calibre-calibredb-executable "calibre"
"The calibredb executable to use."
:type 'string
:package-version '("calibre" . "0.1.0"))
+(defcustom calibre-libraries nil
+ "An alist mapping library names to directories."
+ :type '(repeat :tag "Libraries" (cons :tag "Library"
+ (string :tag "Name")
+ (directory :tag "Location")))
+ :package-version '("calibre" . "0.1.0"))
+
(defcustom calibre-library-columns '((id . 4)
(title . 35)
(authors . 20)
@@ -67,21 +79,9 @@ column should have."
(integer :tag "Width")))
:package-version '("calibre" . "0.1.0"))
-(defcustom calibre-libraries nil
- "An alist mapping library names to directories."
- :type '(repeat :tag "Libraries" (cons :tag "Library"
- (string :tag "Name")
- (directory :tag "Location")))
- :package-version '("calibre" . "0.1.0"))
-
(defun calibre--library-names ()
"Return a list of the names of defined libraries."
(mapcar #'car calibre-libraries))
-(defcustom calibre-format-preferences '(pdf epub)
- "The preference order of file formats."
- :type '(repeat symbol :tag "Format")
- :package-version '("calibre" . "0.1.0"))
-
(provide 'calibre)
;;; calibre.el ends here