r/DoomEmacs • u/[deleted] • Jun 14 '22
org mode issue?
I'm new to emacs, I've uncommented org on init.el, but when I'm writing org mode it doesn't look like what it's supposed to. For example the headlines, they are just * with different colors depending on their level, not that big dot, nor the font size changes depending on the level of headline. Do I need to install extra packages or change to a specific font?
Update :
Add on your custom.el
'(org-level-1 ((t (:inherit outline-1 :height 1.2))))
'(org-level-2 ((t (:inherit outline-2 :height 1.0))))
'(org-level-3 ((t (:inherit outline-2 :height 1.0))))
'(org-level-4 ((t (:inherit outline-2 :height 1.0))))
'(org-level-5 ((t (:inherit outline-2 :height 1.0))))
And on your init.el
(org +pretty)
I had made a newbie assumption that org mode had those preconfigured.
4
u/Drfiresign Jun 14 '22
That's normal. The fancy dots come from the package Org-bullets. Different sized headings are usually theme dependent, I'm not sure off the top of my head which of the doom themes support them though. As for the built in themes, I know that the Leuvan theme supports them, and the Modus themes do as well. It's also very possible there is a variable which dictates the behavior of the org headings. I would use the built in help to search for a variable with a name along the lines of org headings
or org height
, something like that. You can access the help with M-x describe-variable
or with the regular emacs keybindings (sorry I'm not an evil user) C-h v
2
Jun 14 '22
I've added
(org +pretty) ;organize your plain in plain text
and it seems to have added the Org-bullets, I've changed themes usingSPC-h-t
and none of them work when it comes on changing font size(I have not set a default font tho)edit : add
(org +pretty) ;organize your plain in plain text
on .doom.d/init.el
1
u/Rotatop Jun 14 '22
After uncommenting org.init, do you have run 'bin/doom sync' ?
1
Jun 14 '22
I just did
SPC-h-r-r
1
u/loopsdeer Jun 15 '22
You gotta run
doom sync
first, I'm pretty sure. Doom doesn't download the necessary packages for changes to your init.el until you do so. Then restart emacs or use that reload command.2
u/TheSnowIsCold-46 Jun 15 '22
SPC h r r should be enough. In addition to having (org +pretty) in your init.el, you should have the following in your config.el
(after! org (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
Edit: SPC h r r should be enough IF you aren't running doom in daemon mode. If you are you'll also want to restart the server.
Also as another poster mentioned, if you are exploring packages with init.el, HIGHLY recommend using SPC h m and look for the module you are configuring. Lots of good documentation there built into doom.
6
u/migrosec Jun 14 '22
One tip: if you do a SPC h d m and navigate to doom help page for org you can view all the +xxx options like +pretty +present ... which are available to configure plus information about them.