summaryrefslogtreecommitdiff
path: root/keybindings.el
blob: a35ae7b1c403985928e26d62b40ef068e710ca3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(defun xcpu-commit-current-file ()
  (interactive)
  (magit-stage-file (magit-file-relative-name))
  (magit-commit)
  )

(global-set-key (kbd "C-, c") 'comment-region)
(global-set-key (kbd "C-, u") 'uncomment-region)
(global-set-key (kbd "C-, w") 'delete-trailing-whitespace)
(global-set-key (kbd "C-, r") 'revert-buffer)
(global-set-key (kbd "C-, K") 'kill-rectangle)
(global-set-key (kbd "C-, e") 'eval-region)
(global-set-key (kbd "C-, a") 'align-regexp)
(global-set-key (kbd "C-, s") 'delete-trailing-whitespace)
(global-set-key (kbd "C-, c") 'xcpu-commit-current-file)