Context-based actions for emacs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Initial commit Jan 19, 2018
COPYING
README.md
README.org Fix typos Feb 4, 2018
elcontext-action-test.el Use lexical-binding in each file Jan 21, 2018
elcontext-action.el
elcontext-directory-test.el
elcontext-directory.el
elcontext-location-test.el
elcontext-location.el
elcontext-test.el
elcontext-time-test.el
elcontext-time.el
elcontext-utils.el Use lexical-binding in each file Jan 21, 2018
elcontext.el
screenshot.png
title.png

README.md

img

Bring your editing experience to the next level with context-based actions for emacs

Installation

elcontext is available on MELPA. Add the MELPA repositories with the following code in your init file:

(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

Install elcontext by running:

M-x package-install RET elcontext RET

Add the following code to your init file to continuously check for valid contexts:

(require 'elcontext)
(elcontext-global-mode)

Alternatively if you are using use-package you can use the following configuration:

(use-package elcontext
  :ensure t
  :config
  (elcontext-global-mode))

Usage

Use M-x elcontext for on overview of all contexts. Within this overview several hydras will guide through the API, press ? to open the help hydra.

Contexts can consist of a

  • name,
  • location (only for macOS),
  • timespan,
  • directory,
  • and action.

img

If a part of a context is omitted this part is always valid e.g. no location means anywhere, no time means anytime. Each command is triggered once a day.

Use Cases

Work / Home development environment

Start all work applications when you're in the office, stop them when you're home (and start others). This was the original reason to create elcontext. It integrates well with prodigy. You can define all applications you need at work or home as prodigy-services.

Add yours!

If your using elcontext I am happy to hear about your use cases!