Add 'date' thing to 'thing-at-point' function
Alex Kost 38df823d05 gitignore: Add "tmp" and "autoloads.el" | 8 jaren geleden | |
---|---|---|
.gitignore | 8 jaren geleden | |
README.org | 10 jaren geleden | |
date-at-point.el | 9 jaren geleden |
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
This micro-package provides an additional date
thing for
=thing-at-point= function.
This package can be installed from MELPA (with M-x package-install
or
=M-x list-packages=).
date-at-point.el
to the =load-path=:#+BEGIN_SRC emacs-lisp (add-to-list 'load-path "/path/to/date-at-point") #+END_SRC
#+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