reddit / emacs

Starting org-superstar-mode whenever I open an .org file

Aeschylus26 · 2022-06-05 04:18
I recently started using emacs again, so I downloaded the MELPA package manager. I dabbled in spacemacs before. It was great, but I want the experience of building my own init file to suit my needs. org-superstar-mode installed easily because I can enable it when I'm in an org file. What syntax would I add to my init file to start org-superstar-mode on every new file? I thought it would be something like: ~~~ (require 'org-superstar) (add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))) ~~~ I feel so stupid for not being able to figure this out, but I know I'm missing something super obvious here.
1nc0ns1st3nt · 2022-06-05 04:26
You thought the "syntax" should be that, so it must means it doesn't work right? In other words, have you tried it yet? If you go to org super star mode github page, in its installation section it reads: ``` (require 'org-superstar) (add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))) ```
X7and7 · 2022-06-05 09:54
I just hooked org-superstar into orgmode. I don't know if that is the best way of going about it but it works for me.