From d5b54e6ada06f5b5597601ef26a39f051f363055 Mon Sep 17 00:00:00 2001 From: Moritz Muehlenhoff Date: Thu, 8 Oct 2020 19:47:45 +0200 Subject: cvelist.el: New debian-cvelist-cvesearch() function to look up a CVE at MITRE --- conf/cvelist.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'conf') 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'.") -- cgit v1.2.3