Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackernews doesn't display #3

Open
khinshankhan opened this issue Jun 1, 2019 · 4 comments
Open

Hackernews doesn't display #3

khinshankhan opened this issue Jun 1, 2019 · 4 comments

Comments

@khinshankhan
Copy link

I seem to be able to install the package just fine, but it seems hackernews doesn't exist. Eg:

    (setq dashboard-items '((recents  . 5)
                            (hackernews . 7)
                            (agenda . 5)
                            ))

This results in recents and agenda appearing with a blank gap in between them, where hackernews should have been. I was also unable to find many other users using this package. Would it be safe to assume this package is currently broken? Or does this work for other anyone?

@alecvn
Copy link

alecvn commented Jun 30, 2019

Can confirm it doesn't work for me either, but I would love to have this feature. I will try to look into it if I get some time, but I'm not sure I'd be much help.

@ki-chi
Copy link

ki-chi commented Mar 21, 2020

@kkhan01 @alecvn Did you try M-x dashboard-refresh-buffer on the dashboard?

Hackernews seems to be undisplayed on the dashboard when initially loading it by the function dashboard-setup-startup-hook. I don't recommend you use the function dashboard-setup-startup-hook in your .emacs.d, but you can use both dashboard-insert-startupify-lists and dashboard-refresh-buffer at the initial loading, and display Hackernews.

My settings with use-package below:

(use-package dashboard-hackernews
  :config
  (require 'json))
(use-package dashboard
  :after dashboard-hackernews
  :init (add-hook 'after-init-hook
                  #'(lambda () (progn (dashboard-insert-startupify-lists)
                                        (dashboard-refresh-buffer))))
  :config
  (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
  (setq dashboard-items '((recents  . 10)
                          (hackernews . 10)
                          (bookmarks . 5)
                          (projects . 5)))
  )

@alecvn
Copy link

alecvn commented Mar 26, 2020

Thanks @ki-chi, it's not that it simply doesn't display for me, it actually breaks my dashboard. I'll have to look into it again to give you more insight.

@themkat
Copy link
Collaborator

themkat commented Aug 22, 2022

Know this issue is old now, but do anyone still experience these issues with newer versions of the package? I experienced the issue mentioned by @alecvn and fixed it in #4 , and it is working for me. Just asking in case we can close this issue 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants