Code Monkey home page Code Monkey logo

eight-ball's Introduction

Purpose

Sometimes you just want to ask the universe big yes-or-no questions like, “Am I a good person?” or, “Should I get a burrito for lunch?” The Magic 8-Ball is here to help with that.

Usage

M-x eight-ball will prompt you to ask a question, and it will respond with a random answer. Passing the universal argument to eight-ball (typically done by invoking it with C-u M-x eight-ball) will copy a timestamp, the question, and response to the kill-ring.

See Customization section for whether to print the question along with response in the minibuffer, whether or not to include the timestamp, what format the timestamp should take, and the responses with which the Magic 8-Ball can reply.

Installation

Using straight.el (recommended)

straight.el is a powerful Emacs package manager that makes it easy to install Emacs packages from the usual sources like GNU ELPA and MELPA as well as arbitrary git repos (such as this one). It works as an alternative to package.el, and the transition is relatively painless. In order to install and use this package using straight.el, simply include the following in your init:

(straight-use-package
 '(eight-ball
   :type git
   :host github
   :repo "RyanMatlock/eight-ball"))
(require 'eight-ball)

From GitHub

Clone this repo to /path/to/eight-ball [note: /path/to/ should probably be something like ~/.emacs.d/ ], add the following to your init file:

(add-to-list 'load-path "/path/to/eight-ball")
(require 'eight-ball)

Evaluate that code, and you’re ready to go without having to restart Emacs.

Customization

eight-ball.el provides the customization group 8ball, which is available through the customize interface under Applications/Games/8ball.

eight-ball's People

Contributors

ryanmatlock avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.