Skip to content

Commit 29ba74f

Browse files
committed
chore: rename leetcode-1 to leetcode--async
1 parent 044fd1c commit 29ba74f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

leetcode.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;; Keywords: extensions, tools
77
;; URL: https://github.com/kaiwk/leetcode.el
88
;; Package-Requires: ((emacs "26") (dash "2.16.0") (graphql "0.1.1") (spinner "1.7.3") (aio "1.0"))
9-
;; Version: 0.1.6
9+
;; Version: 0.1.7
1010

1111
;; This program is free software; you can redistribute it and/or modify
1212
;; it under the terms of the GNU General Public License as published by
@@ -417,8 +417,9 @@ Return a list of rows, each row is a vector:
417417
(tabulated-list-print t)
418418
(leetcode--loading-mode -1))))
419419

420-
(aio-defun leetcode-1 ()
420+
(aio-defun leetcode--async ()
421421
"Show leetcode problems buffer."
422+
(interactive)
422423
(if (get-buffer leetcode--buffer-name)
423424
(switch-to-buffer leetcode--buffer-name)
424425
(unless (leetcode--login-p)
@@ -428,10 +429,10 @@ Return a list of rows, each row is a vector:
428429

429430
;;;###autoload
430431
(defun leetcode ()
431-
"A wrapper for leetcode-1, because emacs-aio can not be
432-
autoloaded."
432+
"A wrapper for leetcode--async, because emacs-aio can not be
433+
autoloaded. see: https://github.com/skeeto/emacs-aio/issues/3"
433434
(interactive)
434-
(leetcode-1))
435+
(leetcode--async))
435436

436437
(defun leetcode--buffer-content (buf)
437438
"Get content without text properties of BUF."

0 commit comments

Comments
 (0)