summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/acdw.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/acdw.el b/lisp/acdw.el index 9426117..96b69f9 100644 --- a/lisp/acdw.el +++ b/lisp/acdw.el
@@ -169,6 +169,12 @@ Prompt only if there are unsaved changes."
169 (16 (mapc 'kill-buffer (delq (current-buffer) (buffer-list))) 169 (16 (mapc 'kill-buffer (delq (current-buffer) (buffer-list)))
170 (delete-other-windows)))) 170 (delete-other-windows))))
171 171
172(defun acdw/insert-iso-date (with-time)
173 "Insert the ISO-8601-formatted date, with optional time."
174 (interactive "P")
175 (let ((format (if with-time "%FT%T%z" "%F")))
176 (insert (format-time-string format (current-time)))))
177
172 178
173;; Make `C-z' more useful 179;; Make `C-z' more useful
174(defvar acdw/leader 180(defvar acdw/leader