diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2020-10-08 19:47:45 +0200 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2020-10-08 19:47:45 +0200 |
commit | 474139b9a473167aefaa5503ca1042153c723490 (patch) | |
tree | 55a0a4edb1f184d54fa3d0b2a03cfd83095da51c /conf | |
parent | 26312d5690cb2050de98f9494e85a9222ee7108f (diff) |
cvelist.el: New debian-cvelist-cvesearch() function to look up a CVE at MITRE
Diffstat (limited to 'conf')
-rw-r--r-- | conf/cvelist.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el index fa8b16c6da..5e34f12a05 100644 --- a/conf/cvelist.el +++ b/conf/cvelist.el @@ -1,5 +1,4 @@ ;; Major mode for Debian's CVE list -;; currently only does some syntax highlighting ;; ;; Can be enabled via ;; @@ -18,10 +17,16 @@ (interactive) (insert "\tNOTE: ")) +(defun debian-cvelist-cvesearch () + "Look up a CVE ID at the MITRE website" + (interactive) + (browse-url (concat "https://cve.mitre.org/cgi-bin/cvename.cgi?name=" (thing-at-point 'symbol)))) + (defvar debian-cvelist-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-f") 'debian-cvelist-insert-not-for-us) (define-key map (kbd "C-c C-n") 'debian-cvelist-insert-note) + (define-key map (kbd "C-c C-c") 'debian-cvelist-cvesearch) map) "Keymap for `debian-cvelist-mode'.") |