diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-03-07 19:43:24 -0300 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-03-07 19:43:24 -0300 |
commit | 9136c93cbe44ed15df4c51a1f9310ebea512dcfe (patch) | |
tree | 9277b0f88cb390be0dd18b4e38d5238cca6455f9 | |
parent | 0e690619e2b0260c81f65cd7840d43205854aa83 (diff) |
Readme
-rw-r--r-- | README.org | 23 | ||||
-rw-r--r-- | spinner.el | 26 |
2 files changed, 47 insertions, 2 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..0c680c0 --- /dev/null +++ b/README.org @@ -0,0 +1,23 @@ +#+TITLE: spinner.el + +Add spinners and progress-bars to the mode-line for ongoing operations. + +* Usage + +1. Add ~(spinner "1.0")~ to your package’s dependencies. + +2. Call ~(spinner-start)~ and a spinner will be added to the mode-line. + +3. Call ~(spinner-stop)~ on the same buffer when you want to remove it. + +* Behavior + +The default spinner is a line drawing that rotates. You can pass an +argument to ~spinner-start~ to specify which spinner you want. All +possibilities are listed in the ~spinner-types~ variable, but here are +a few examples for you to try: + +- ~(spinner-start 'vertical-breathing 10)~ +- ~(spinner-start 'minibox)~ +- ~(spinner-start 'moon)~ +- ~(spinner-start 'triangle)~ @@ -20,8 +20,30 @@ ;; along with this program. If not, see <http://www.gnu.org/licenses/>. ;;; Commentary: - -;; Run `(spinner-start)' to see the effect. +;; 1 Usage +;; ═══════ +;; +;; 1. Add `(spinner "1.0")' to your package’s dependencies. +;; +;; 2. Call `(spinner-start)' and a spinner will be added to the +;; mode-line. +;; +;; 3. Call `(spinner-stop)' on the same buffer when you want to remove +;; it. +;; +;; +;; 2 Behavior +;; ══════════ +;; +;; The default spinner is a line drawing that rotates. You can pass an +;; argument to `spinner-start' to specify which spinner you want. All +;; possibilities are listed in the `spinner-types' variable, but here are +;; a few examples for you to try: +;; +;; • `(spinner-start 'vertical-breathing 10)' +;; • `(spinner-start 'minibox)' +;; • `(spinner-start 'moon)' +;; • `(spinner-start 'triangle)' ;;; Code: |