aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-07-06 00:33:55 +1000
committerYuchen Pei <id@ypei.org>2023-07-06 00:33:55 +1000
commit54ed4cd29be20c5ccd76d851b04a4bc292779452 (patch)
treeb34e44e1fd073ea1321b43622fafbe8c222cfd21 /emacs
parent801ef503d710f559011c11d3f70e4061e587a808 (diff)
fix hnreader
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init/ycp-web.el3
-rw-r--r--emacs/.emacs.d/lisp/my/my-hnreader.el2
2 files changed, 3 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init/ycp-web.el b/emacs/.emacs.d/init/ycp-web.el
index 19c4095..b322aa0 100644
--- a/emacs/.emacs.d/init/ycp-web.el
+++ b/emacs/.emacs.d/init/ycp-web.el
@@ -66,7 +66,8 @@
(require 'my-hnreader)
(my-override hnreader--print-frontpage)
(my-override hnreader--print-frontpage-item)
- (my-override hnreader--print-comments))
+ (my-override hnreader--print-comments)
+ (my-override hnreader--get-title))
(my-package buildbot
(:delay 30)
diff --git a/emacs/.emacs.d/lisp/my/my-hnreader.el b/emacs/.emacs.d/lisp/my/my-hnreader.el
index 325ab9d..761fad6 100644
--- a/emacs/.emacs.d/lisp/my/my-hnreader.el
+++ b/emacs/.emacs.d/lisp/my/my-hnreader.el
@@ -68,7 +68,7 @@
(goto-char (point-min))
(forward-line 2))))
-;; To override `'hnreader--get-title'
+;; To override `hnreader--get-title'
(defun my-hnreader--get-title (dom)
"Get title and link from DOM comment page."
(let ((a-link (dom-by-tag (dom-by-class dom "^titleline$") 'a)))