aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-11-02 00:10:17 +1100
committerYuchen Pei <id@ypei.org>2023-11-02 00:10:17 +1100
commitfed367f31e61f16a6e952630f332d5121c43b904 (patch)
treea6b52d7bbf5e627e7f3bb7f8b5eb1ab506a3317d /emacs/.emacs.d/lisp
parent94643dfd001fa66319d857fa260d15e543ea9f5d (diff)
[emacs] Add google-docs-odt and fix my-lem-org
Diffstat (limited to 'emacs/.emacs.d/lisp')
-rw-r--r--emacs/.emacs.d/lisp/my/lem-org.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/emacs/.emacs.d/lisp/my/lem-org.el b/emacs/.emacs.d/lisp/my/lem-org.el
index 37a7bfb..67e4e54 100644
--- a/emacs/.emacs.d/lisp/my/lem-org.el
+++ b/emacs/.emacs.d/lisp/my/lem-org.el
@@ -51,9 +51,9 @@
(when-let ((host-and-id (lem-org-parse-post-url url)))
;; The (local) binding of `lem-instance-url' and `lem-api-version'
;; are required by `lem-get-post' and `lem-api-get-post-comments'.
- (let ((lem-instance-url (car host-and-id))
- (lem-api-version "v3")
- (post-id (cdr host-and-id)))
+ (let ((post-id (cdr host-and-id)))
+ (setq lem-instance-url (car host-and-id)
+ lem-api-version "v3")
(cons `(post . ,(lem-get-post post-id))
(lem-api-get-post-comments post-id "All" nil 50)))))
@@ -164,7 +164,8 @@ those at the top level."
(with-current-buffer (get-buffer-create "*lem-org*")
(erase-buffer)
(insert post "\n\n" comments)
- (goto-char (point-min)))
+ (goto-char (point-min))
+ (org-mode))
(display-buffer "*lem-org*")))
(provide 'lem-org)