wigust / emacs-redshift

Emacs interface to Redshift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-*- mode: org -*-

About

Emacs-Redshift (aka redshift.el) provides an Emacs interface to Redshift for changing display color temperature.

Installation

Emacs-Redshift can be used from a Git checkout and can be installed using Guix.

Git checkout

Clone a Git repository:

git clone https://github.com/wigust/emacs-redshift

Add it to Emacs load-path in your init file and load:

(add-to-list 'load-path (expand-file-name "~/emacs-redshift"))
(require 'redshift)

Guix

Clone a Git repository:

git clone https://github.com/wigust/emacs-redshift
cd emacs-redshift

Install a Guix package with:

guix package -f guix.scm

Usage

Call M-x redshift-set-temp to set a display temperature.

Call M-x redshift-increase-temp to increase a display temperature.

Call M-x redshift-decrease-temp to decrease a display temperature.

To change increment for redshift-increase-temp and redshift-decrease-temp set redshift-temp-increment to a number.

(setq redshift-temp-increment 100)

Keys

You could use Hydra to get an interactive interface:

(defhydra hydra-redshift () "redshift"
    ("g" redshift-set-temp "set")
    ("n" redshift-decrease-temp "decrease")
    ("p" redshift-increase-temp "increase"))

About

Emacs interface to Redshift


Languages

Language:Emacs Lisp 50.4%Language:Scheme 49.6%