Bring your editing experience to the next level with context-based actions for emacs
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))
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.
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.
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.
If your using elcontext
I am happy to hear about your use cases!