Skip to content

Commit 8b39296

Browse files
committed
doc: update
1 parent b049e03 commit 8b39296

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ LeetCode brings you offer, and now Emacs brings you LeetCode!
66
# Installation
77

88
- Vanilla Emacs: `package-install` it from melpa directly
9-
- [Spacemacs](https://github.com/syl20bnr/spacemacs): [leetcode-emacs-layer](https://github.com/anmoljagetia/leetcode-emacs-layer)
9+
- [Spacemacs](https://github.com/syl20bnr/spacemacs):
10+
[leetcode-emacs-layer](https://github.com/anmoljagetia/leetcode-emacs-layer)
1011

11-
LeetCode do not allow third party login, one workaround is restore LeetCode session from local Chrome cookies. By default, this package will install a Python3 package called [my\_cookies](https://github.com/kaiwk/my_cookies), or you can install it manually: `pip3 install my_cookies`.
12+
LeetCode do not allow third party login, one workaround is restore LeetCode
13+
session from local Firefox or Chrome cookies. By default, this package will
14+
install a Python3 package called
15+
[my\_cookies](https://github.com/kaiwk/my_cookies), or you can install it
16+
manually: `pip3 install my_cookies`.
1217

1318
## Manually
1419

@@ -18,14 +23,16 @@ LeetCode do not allow third party login, one workaround is restore LeetCode sess
1823

1924
# Configuration
2025

21-
You can set your preferred LeetCode programming language and SQL by setting `leetcode-prefer-language` and `leetcode-prefer-sql`:
26+
You can set your preferred LeetCode programming language and SQL by setting
27+
`leetcode-prefer-language` and `leetcode-prefer-sql`:
2228

2329
```elisp
2430
(setq leetcode-prefer-language "python3")
2531
(setq leetcode-prefer-sql "mysql")
2632
```
2733

28-
All supported languages can be found in variable `leetcode--prefer-language-suffixes`.
34+
All supported languages can be found in variable
35+
`leetcode--prefer-language-suffixes`.
2936

3037
You can save solution by setting `leetcode-save-solutions`:
3138

@@ -53,16 +60,18 @@ In leetcode problems list buffer:
5360
| G | refresh all data |
5461
| RET | show current problem description |
5562

56-
2. Press `<RET>`, show problem description, move cursor to "solve it", press `<RET>` again, start coding!
63+
2. Press `<RET>`, show problem description, move cursor to "solve it", press
64+
`<RET>` again, start coding!
5765

58-
3. After finishing your code, you can edit testcase and execute `leetcode-try` or execute `leetcode-submit`.
66+
3. After finishing your code, you can edit testcase and execute `leetcode-try`
67+
or execute `leetcode-submit`.
5968

6069
![leetcode-submit](images/leetcode-submit.png)
6170

6271
# Debug
6372

6473
Call `leetcode-toggle-debug`, log will output in `*leetcode-log*` buffer.
6574

66-
# Contribution
75+
# Contributing
6776

6877
Please submit PR to develop branch.

0 commit comments

Comments
 (0)