diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..db9cd35 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,10 @@ +## Description + + + +## Emacs info + +``` +Emacs: {{M-x emacs-version}} +Aggressive-indent: {{M-x pkg-info-version-info 'aggressive-indent}} +``` diff --git a/aggressive-indent.el b/aggressive-indent.el index c467db8..7378a8a 100644 --- a/aggressive-indent.el +++ b/aggressive-indent.el @@ -93,13 +93,19 @@ "Opens github issues page in a web browser. Please send any bugs you find. Please include your Emacs and `aggressive-indent' versions." (interactive) - (message "Your `aggressive-indent-version' is: %s, and your emacs version is: %s. -Please include this in your report!" - (eval-when-compile - (ignore-errors - (require 'lisp-mnt) - (lm-version))) - emacs-version) + (with-output-to-temp-buffer "*Aggressive Indent*" + (let ((format-str "\ +\n\n\n +## Description +\n\n +## Emacs info +``` +Emacs: %s +Aggressive-indent: %s +```")) + (princ (format format-str + (replace-regexp-in-string "\n" "" (emacs-version)) + (pkg-info-version-info 'aggressive-indent))))) (browse-url "https://github.com/Malabarba/aggressive-indent-mode/issues/new")) (defvar aggressive-indent-mode)