|
@@ -12,3 +12,10 @@
|
|
;;;; The main supported functionality is to display in a buffer a list of
|
|
;;;; The main supported functionality is to display in a buffer a list of
|
|
;;;; HN top stories (in a buffer), and to then open articles in the web browser,
|
|
;;;; HN top stories (in a buffer), and to then open articles in the web browser,
|
|
;;;; or display comments in a buffer
|
|
;;;; or display comments in a buffer
|
|
|
|
+
|
|
|
|
+(if (executable-find "hn")
|
|
|
|
+ (progn
|
|
|
|
+ (with-temp-buffer-window "hn"
|
|
|
|
+ 'temp-buffer-show-function
|
|
|
|
+ 'inhibit-quit
|
|
|
|
+ (concat "\n" (shell-command-to-string "hn top 20")))))
|