Emacsで日付を挿入する。
変更履歴などに便利かと。
![f:id:crosshope:20110602014353p:image:w360 f:id:crosshope:20110602014353p:image:w360](https://cdn-ak.f.st-hatena.com/images/fotolife/c/crosshope/20110602/20110602014353.png)
![f:id:crosshope:20110602015551p:image f:id:crosshope:20110602015551p:image](https://cdn-ak.f.st-hatena.com/images/fotolife/c/crosshope/20110602/20110602015551.png)
;; 日付挿入 (defun insert-current-time() (interactive) (insert (format-time-string "%Y-%m-%d(%a) %H:%M:%S" (current-time)))) (define-key global-map "\C-cd" `insert-current-time)
Ctrl+c dで日付が入ります。 表示形式は自分の好みにあわせて変更してください。
;; 日付挿入 (defun insert-current-time() (interactive) (insert (format-time-string "%Y-%m-%d(%a) %H:%M:%S" (current-time)))) (define-key global-map "\C-cd" `insert-current-time)