From fe7ca6b0b42510fb1512dc783e36fb885d1e83cf Mon Sep 17 00:00:00 2001 From: opfez Date: Wed, 26 May 2021 14:20:59 +0200 Subject: [PATCH] add fez/time-stamp --- custom.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom.el b/custom.el index c0fd35d..11c1f72 100644 --- a/custom.el +++ b/custom.el @@ -50,6 +50,10 @@ (key-description (read-key-sequence-vector "Key sequence: ")) "\")"))) +(defun fez/time-stamp () + (interactive) + (shell-command "LANG=nb_NO.UTF-8 date +%d-%m-%Y" t)) + ;; Eshell convinience commands. (defalias 'open 'find-file-other-window) (defalias 'clean 'eshell/clear-scrollback) @@ -68,6 +72,8 @@ ;; Insipiration from Nyxt, kill the current buffer. (global-set-key (kbd "C-x C-k") 'kill-this-buffer) +(global-set-key (kbd "C-c t") 'fez/time-stamp) + ;; Binds for switching between light and dark themes. (global-set-key [f5] (lambda () (interactive)