Improve issue reporting

This commit is contained in:
JAremko 2017-06-21 22:05:38 +03:00 committed by Eivind Fonn
parent 08561d8631
commit cd3aa05fab
2 changed files with 12 additions and 5 deletions

View File

@ -246,7 +246,17 @@ seconds to load")
(concat (spacemacs//describe-last-keys-string) "\n")
"")))
(switch-to-buffer buf)
(insert-file-contents-literally
(let ((ov (make-overlay (point-min) (point-min)))
(prop-val
(concat (propertize (concat "REPLACE ALL UPPERCASE EXPRESSIONS"
" AND PRESS `C-c C-c` TO SUBMIT")
'display
'(raise -1)
'face
'font-lock-warning-face)
"\n\n")))
(overlay-put ov 'after-string prop-val))
(insert-file-contents
(concat configuration-layer-template-directory "REPORTING.template"))
(loop
for (placeholder replacement)
@ -259,15 +269,13 @@ seconds to load")
(replace-match replacement [keep-case] [literal])))
(spacemacs/report-issue-mode)))
(define-derived-mode spacemacs/report-issue-mode markdown-mode "Report-Issue"
(define-derived-mode spacemacs/report-issue-mode text-mode "Report-Issue"
"Major mode for reporting issues with Spacemacs.
When done editing, you can type \\[spacemacs//report-issue-done] to create the
issue on Github. You must be logged in already for this to work. After you see
that the issue has been created successfully, you can close this buffer.
Markdown syntax is supported in this buffer.
\\{spacemacs/report-issue-mode-map}
"
(font-lock-add-keywords 'spacemacs/report-issue-mode

View File

@ -1,4 +1,3 @@
<<REPLACE ALL UPPERCASE EXPRESSIONS AND DELETE THIS LINE, `C-c C-c` TO SUBMIT>>
#### Description :octocat:
<<DESCRIPTION OF THE PROBLEM>>