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)