Skip to content
[Elisp] insert-time provides an easy way to insert time and date stamps into your emacs buffers
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
README.markdown
insert-time.el

README.markdown

Purpose

insert-time provides an easy way to insert time and date stamps into your files

Usage

Example of lines that may be added to your .emacs:

(require 'insert-time)

; in case you don't like the defaults
; (see `format-time-string' for format)
(setq insert-date-format "%Y-%m-%d")
(setq insert-time-format "%H:%M:%S")
(setq insert-date-time-format "%Y-%m-%dT%T%z")

; keyboard shortcuts
(define-key global-map [(control c)(d)] 'insert-date-time)
(define-key global-map [(control c)(control v)(d)] 'insert-personal-time-stamp)

How it works

just a few inserts using the emacs built in format-time-string

You can’t perform that action at this time.