summaryrefslogtreecommitdiff
path: root/keybindings.el
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-10 11:34:28 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-10 11:34:28 -0300
commit06a8e4bf637fbfbf7575703a93ff082ad7879952 (patch)
tree21ea9eee9e83dc86d93a28cf9f3d8b53bc702dad /keybindings.el
parentea3ca31cb2ab42756fcdf698ed55ebfc36e25265 (diff)
Add helper to thank for patches
Diffstat (limited to 'keybindings.el')
-rw-r--r--keybindings.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/keybindings.el b/keybindings.el
index 120088f..4a0a980 100644
--- a/keybindings.el
+++ b/keybindings.el
@@ -11,6 +11,13 @@
(insert "\n\nPushed. Thanks\n -- Guido\n")
(backward-char 4))
+(defun xcpu-thank-push ()
+ (interactive)
+ (re-search-forward "^> -- ")
+ (backward-char 5)
+ (insert "\nPushed. Thanks\n -- Guido\n\n"))
+
+
(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)
@@ -29,4 +36,5 @@
(global-set-key (kbd "C-, S") 'xcpu-deb-open-security-tracker)
(global-set-key (kbd "C-, L") 'xcpu-deb-add-dla-needed)
-(global-set-key (kbd "C-< C-<") 'xcpu-thank-ack)
+(global-set-key (kbd "C-< <") 'xcpu-thank-ack)
+(global-set-key (kbd "C-< .") 'xcpu-thank-push)