File: issue_template.md

package info (click to toggle)
emacs-dart-mode 1.0.7%2Bgit20250423.f82ff05-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 656 kB
  • sloc: lisp: 613; makefile: 29
file content (48 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--
Please familiarize yourself with
<https://en.wikipedia.org/wiki/Minimal_reproducible_example>.

The template below may give an idea of what to include.

Modify as appropriate.
-->

First, I created a temporary working directory.

```
> mkdir /tmp/mbe
> cd /tmp/mbe
> touch .emacs
> touch example.dart
```

Contents of init file:

```elisp
;; /tmp/mbe/.emacs

(package-initialize)

(setq package-archives
      '(("gnu" . "https://elpa.gnu.org/packages/")
        ("nongnu" . "https://elpa.nongnu.org/nongnu/")))

(let ((my-pkgs '(dart-mode)))
  (when (seq-remove 'package-installed-p my-pkgs)
    (package-refresh-contents)
    (mapc (lambda (pkg) (package-install pkg t)) my-pkgs)))
```

Contents of Dart file:

```dart
// /tmp/mbe/example.dart
void main() {}
```

Then I ran the following:

```
> HOME=$(pwd)
> emacs example.dart
```