From ac1a4884d03fc0495c773500d8a13f84b695fa43 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Wed, 11 Sep 2019 19:18:14 -0400 Subject: Init --- emacs/inits/70-global-keybinds.el | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 emacs/inits/70-global-keybinds.el (limited to 'emacs/inits/70-global-keybinds.el') diff --git a/emacs/inits/70-global-keybinds.el b/emacs/inits/70-global-keybinds.el new file mode 100644 index 0000000..92ae2fe --- /dev/null +++ b/emacs/inits/70-global-keybinds.el @@ -0,0 +1,32 @@ +;; Time-stamp: <2019-08-25 21:44:55 (tslil@basingstoke)> + +(setq time-stamp-active t + time-stamp-line-limit 3 + time-stamp-format "%04y-%02m-%02d %02H:%02M:%02S (%u@%s)") + +(add-hook 'before-save-hook #'time-stamp) + +(defun insert-timestamp () + (interactive) + (save-excursion + (goto-char (point-min)) + (unless (search-forward "Time-stamp: " + (line-beginning-position (1+ time-stamp-line-limit)) + t) + (goto-char (point-min)) + (newline) + (beginning-of-line 0) + (comment-dwim nil) + (insert (concat "Time-stamp: " "<>")) + (newline)) + (time-stamp))) +(global-set-key (kbd "C-x t") 'insert-timestamp) + +(global-set-key (kbd "") 'notmuch) +(global-set-key (kbd "C-x m") 'eshell) +(global-set-key (kbd "C-c c") 'shell) +(global-set-key (kbd "C-x e") 'eval-expression) + +(global-set-key (kbd "M-i") 'indent-region) + +(global-set-key (kbd "C-v") 'delete-indentation) -- cgit v1.2.3