summaryrefslogtreecommitdiffstats
path: root/conf/cvelist.el
diff options
context:
space:
mode:
authorMoritz Muehlenhoff <jmm@debian.org>2020-10-08 19:47:45 +0200
committerMoritz Muehlenhoff <jmm@debian.org>2020-10-08 19:47:45 +0200
commit3e9003f025fb3d49bb0c7c277f7ab15da9c3a599 (patch)
tree2fd19d0c19ec0f2b905d752cdf9337dbdbadf172 /conf/cvelist.el
parente10662e9a331d863fc1e75936bf15545120c2ceb (diff)
cvelist.el: New debian-cvelist-cvesearch() function to look up a CVE at MITRE
Diffstat (limited to 'conf/cvelist.el')
-rw-r--r--conf/cvelist.el7
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'.")

© 2014-2024 Faster IT GmbH | imprint | privacy policy