Skip to content

Commit

Permalink
0.1.0: refactor readme to org-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sam030820 committed Aug 7, 2020
1 parent a0b808d commit 8a09629
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 86 deletions.
45 changes: 0 additions & 45 deletions README.md

This file was deleted.

42 changes: 42 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#+AUTHOR: sam030820
#+DATE: <2020-08-07 Fri>
#+LANGUAGE: en

*insert-esv is an Emacs package for inserting ESV Bible passages.*

** Installation
insert-esv is available from [[https://melpa.org/#/getting-started][MELPA]].

1. Run ~M-x package-install RET insert-esv RET~ to install the package.
2. Grab an API key from [[https://api.esv.org/docs/][Crossway]].
3. Add the API key to your init file:
~(setq insert-esv-crossway-api-key "<token>")~.

If you don't wish to use MELPA, you can clone this repo and run
~M-x package-install-file RET </path/to/insert-esv.el> RET~.

** Usage
1. Set a keybind in your init file:
~(global-set-key (kbd "C-x C-e") #'insert-esv-passage)~.
2. Alternatively, run it from the minibuffer:
~M-x insert-esv-passage RET~.
3. Enter a Bible reference (e.g. "Matthew 6:33") and hit ~RET~ to insert
it at cursor point.

** Options
- insert-esv contains support for the optional parameters in Crossway's
[[https://api.esv.org/docs/passage-text/][Passage Text API]].
- You can customise these parameters in your init file.
- Make sure to prefix the parameter with "insert-esv", like this:
~(setq insert-esv-include-headings 'true)~.

** Disclaimer
- insert-esv is licensed under
[[https://github.com/sam030820/insert-esv/blob/master/COPYING][GPLv3]].
- Scripture quotations are from the ESV® Bible, copyright © 2001 by
Crossway, a publishing ministry of Good News Publishers.

** Changelog
*** [0.1.0] - 2020-08-07
**** Added
- Initial release
77 changes: 36 additions & 41 deletions insert-esv.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,50 +24,45 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; **InsertESV is an Emacs package for inserting ESV Bible passages.**

;;;; ## Installation

;; insert-esv is available from [MELPA](https://melpa.org/#/getting-started).

;; 1. Run `M-x package-install RET insert-esv RET` to install the package.
;; 2. Grab an API key from [Crossway](https://api.esv.org/docs/).
;;
;; *insert-esv is an Emacs package for inserting ESV Bible passages.*
;;
;; ** Installation
;; insert-esv is available from [[https://melpa.org/#/getting-started][MELPA]].
;;
;; 1. Run ~M-x package-install RET insert-esv RET~ to install the package.
;; 2. Grab an API key from [[https://api.esv.org/docs/][Crossway]].
;; 3. Add the API key to your init file:
;; `(setq insert-esv-crossway-api-key "<token>")`.

;; If you don't wish to use MELPA, you can clone this repo and
;; run `M-x package-install-file RET </path/to/insert-esv.el> RET`.

;;;; ## Usage

;; ~(setq insert-esv-crossway-api-key "<token>")~.
;;
;; If you don't wish to use MELPA, you can clone this repo and run
;; ~M-x package-install-file RET </path/to/insert-esv.el> RET~.
;;
;; ** Usage
;; 1. Set a keybind in your init file:
;; `(global-set-key (kbd "C-x C-e") #'insert-esv-passage)`.
;; ~(global-set-key (kbd "C-x C-e") #'insert-esv-passage)~.
;; 2. Alternatively, run it from the minibuffer:
;; `M-x insert-esv-passage RET`.
;; 3. Enter a Bible reference (e.g. "Matthew 6:33") and hit `RET`
;; to insert it at cursor point.

;;;; ## Options

;; * InsertESV contains support for the optional parameters in
;; Crossway's [Passage Text API](https://api.esv.org/docs/passage-text/).
;; * You can customise these parameters in your init file.
;; * Make sure to prefix the parameter with "insert-esv", like this:
;; `(setq insert-esv-include-headings 'true)`.

;;;; ## Disclaimer

;; * InsertESV is licensed under
;; [GPLv3](https://github.com/sam030820/insert-esv/blob/master/COPYING).
;; * Scripture quotations are from the ESV® Bible, copyright © 2001
;; by Crossway, a publishing ministry of Good News Publishers.

;;;; ## Changelog

;; ### [0.1.0] - 2020-08-07
;; #### Added
;; * Initial release
;; ~M-x insert-esv-passage RET~.
;; 3. Enter a Bible reference (e.g. "Matthew 6:33") and hit ~RET~ to insert
;; it at cursor point.
;;
;; ** Options
;; - insert-esv contains support for the optional parameters in Crossway's
;; [[https://api.esv.org/docs/passage-text/][Passage Text API]].
;; - You can customise these parameters in your init file.
;; - Make sure to prefix the parameter with "insert-esv", like this:
;; ~(setq insert-esv-include-headings 'true)~.
;;
;; ** Disclaimer
;; - insert-esv is licensed under
;; [[https://github.com/sam030820/insert-esv/blob/master/COPYING][GPLv3]].
;; - Scripture quotations are from the ESV® Bible, copyright © 2001 by
;; Crossway, a publishing ministry of Good News Publishers.
;;
;; ** Changelog
;; *** [0.1.0] - 2020-08-07
;; **** Added
;; - Initial release

;;; Code:

Expand Down

0 comments on commit 8a09629

Please sign in to comment.