Skip to content

aki2o/emacs-date-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

This is a date widget in Emacs.

demo

Install

If use package.el

2014/11/30 It's available by using melpa.

If use el-get.el

2014/11/30 It's available. But, master branch only.

If use auto-install.el

(auto-install-from-url "https://raw.github.com/aki2o/emacs-date-field/master/date-field.el")
  • In this case, you need to install each of the following dependency.

Manually

Download date-field.el and put it on your load-path.

  • In this case, you need to install each of the following dependency.

Dependency

  • dash.el
  • log4e.el
  • yaxception.el

Configuration

(require 'date-field)

Usage

Create Widget

(widget-create 'date-field)

Optional properties are here.

  • separator … a string to separate the each part of year/month/day.
  • year … a string/number to init year part.
  • month … a string/number to init month part.
  • day … a string/number to init day part.

Control Widget

In default, date-field-keymap is activated on this widget.
It defines the following keys.

  • j , n … up active column value.
  • k , p … down active column value.
  • h , b … select left column.
  • l , f … select right column.

Getting/Setting Value

This widget value returns/accepts the format like "yyyy/mm/dd" depends on separator.
Also, A year/month/day property returns a number of that by widget-get.

Tested On

  • Emacs … GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-02-22 on chindi10, modified by Debian
  • log4e.el … 0.2.0
  • yaxception.el … 0.3.2

Enjoy!!!