diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-06-30 14:17:35 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-06-30 14:17:35 +0200 |
commit | c8e1b0c852f141528173ba8a894631715fe8bd2b (patch) | |
tree | c5a96df8327173ea4bb528c302fb18ff2af83ba9 | |
parent | 12cb389b405ef48cab8cb0b3997abc8ec8e804d6 (diff) |
Simplify opening bugs
-rw-r--r-- | debian.el | 13 | ||||
-rw-r--r-- | keybindings.el | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/debian.el b/debian.el new file mode 100644 index 0000000..85b2505 --- /dev/null +++ b/debian.el @@ -0,0 +1,13 @@ +(defun xcpu-deb-open-bug () + "Open the bug under the cursor in the debian bts" + (interactive) + (let* ( + (bounds (bounds-of-thing-at-point 'symbol)) + (text (if bounds + (buffer-substring (car bounds) (cdr bounds)) + (read-string "Debian Number: "))) + (url (concat "http://bugs.debian.org/" text)) + ) + (browse-url url) + )) + diff --git a/keybindings.el b/keybindings.el index 2cafa3b..446ea72 100644 --- a/keybindings.el +++ b/keybindings.el @@ -15,3 +15,5 @@ (global-set-key (kbd "C-, c") 'xcpu-commit-current-file) (global-set-key (kbd "C-, C") 'blog-insert-cve-markdown-link) (global-set-key (kbd "C-, D") 'blog-insert-debian-bts-markdown-link) +(global-set-key (kbd "C-, g") 'vc-git-grep) +(global-set-key (kbd "C-, b") 'xcpu-deb-open-bug) |