Add 'date' thing to 'thing-at-point' function

Alex Kost 38df823d05 gitignore: Add "tmp" and "autoloads.el" 8 роки тому
.gitignore 38df823d05 gitignore: Add "tmp" and "autoloads.el" 8 роки тому
README.org 742a5e6d4f Add some badges 10 роки тому
date-at-point.el 258c0268cc Remove "gitorious" URL since it is dead 9 роки тому

README.org

file:https://img.shields.io/badge/license-GPL_3-orange.svg file:http://melpa.org/packages/date-at-point-badge.svg file:http://stable.melpa.org/packages/date-at-point-badge.svg

About

This micro-package provides an additional date thing for =thing-at-point= function.

Installation

Automatic

This package can be installed from MELPA (with M-x package-install or =M-x list-packages=).

Manual

  1. Add a directory with date-at-point.el to the =load-path=:

#+BEGIN_SRC emacs-lisp (add-to-list 'load-path "/path/to/date-at-point") #+END_SRC

  1. Require the package:

#+BEGIN_SRC emacs-lisp (require 'date-at-point) #+END_SRC

Now you can use (thing-at-point 'date) or (date-at-point) in your elisp code.

Alternatively (if you don't want to require it), use an autoload for date-at-point function:

#+BEGIN_SRC emacs-lisp (autoload 'date-at-point "date-at-point") #+END_SRC