Skip to content

Commit 608b4bd

Browse files
committed
feat: use aio when try and submit, close kaiwk#33
1 parent 695e7bb commit 608b4bd

File tree

3 files changed

+176
-173
lines changed

3 files changed

+176
-173
lines changed

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2019-09-06 Wang Kai <[email protected]>
2+
3+
* leetcode.el: use emacs-aio and remove request.el and
4+
deferred.el, now you don't need cURL installed.
5+
* README.md: update README
6+
17
2019-08-27 Wang Kai <[email protected]>
28

39
* leetcode.el (leetcode--problem-link): add problem button in

README.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ If you use [spacemacs](https://github.com/syl20bnr/spacemacs), there is a [leetc
1717

1818
# Configuration
1919

20-
First of all, you should have cURL installed.
21-
2220
You can set your preferred LeetCode programming language and SQL by setting `leetcode-prefer-language` and `leetcode-prefer-sql`:
2321

2422
```elisp
2523
(setq leetcode-prefer-language "python3")
2624
(setq leetcode-prefer-sql "mysql")
2725
```
2826

29-
All supported languages can be found in `leetcode--prefer-language-suffixes` variable.
27+
All supported languages can be found in variable `leetcode--prefer-language-suffixes`.
3028

3129
# Usage
3230

@@ -53,20 +51,9 @@ In leetcode problems list buffer:
5351
If you are unable to start Leetcode, set these variables and try again to see a full stacktrace:
5452

5553
```elisp
56-
(setq request-message-level 'debug)
57-
(setq request-log-level 'debug)
58-
```
59-
60-
## Windows
61-
62-
If you are using Windows, it is possible that `curl` executable comes from `Windows\System32\curl.exe` (you can check it by running `where curl` in the command line), which can give the following error:
63-
64-
```bash
65-
curl: option --compressed: the installed libcurl version doesn't support this
54+
(setq url-debug t)
6655
```
6756

68-
To solve this error, it is suggested to use `curl` provided by Git. Add `<path to Git>\mingw64\bin` to the `Path`.
69-
7057
# Contributing
7158

7259
This package use [Cask](https://cask.readthedocs.io/en/latest/guide/introduction.html) to develop, build and test.

0 commit comments

Comments
 (0)