Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show template buffer instead of echo messages #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Description
<!-- Please write a description of your issue -->


## Emacs info
<!-- Try `M-x aggressive-indent-bug-report` -->
```
Emacs: {{M-x emacs-version}}
Aggressive-indent: {{M-x pkg-info-version-info 'aggressive-indent}}
```
20 changes: 13 additions & 7 deletions aggressive-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 "\
<!-- Please copy and paste below template to github issue -->\n\n\n
## Description
<!-- Please write a description of your issue -->\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)
Expand Down