rougier / nano-emacs

GNU Emacs / N Λ N O - Emacs made simple
GNU General Public License v3.0
2.52k stars 195 forks source link

use title/author keywords #39

Closed sam217pa closed 3 years ago

sam217pa commented 3 years ago

Change the default faces for title and document info (date, author) so that it looks the same as in your demo. The keywords are hidden by setting org-hidden-keywords.

Using these keywords has the advantage of being parseable by pandoc or org-export and related tools.

rougier commented 3 years ago

Fantastic ! I've looked into this without finding a solution. Many thanks. Can you also remove the org-emphasis-alist part which isn't needed anymore ?

sam217pa commented 3 years ago

This should do it.

Thanks for nano-writer btw; it looks amazing!

(For the record I'm using org-superstar-mode and it works flawlessly with nano-writer tweaks: bullets are correctly aligned and everything.)

rougier commented 3 years ago

Thanks. Good to know it 's working nicely with other packages. I still have a bug though where I need to start it twice before seeing the indentation.

HyunggyuJang commented 3 years ago

Thanks. Good to know it 's working nicely with other packages. I still have a bug though where I need to start it twice before seeing the indentation.

Think that is due to the fact you activating minor modes, here org-indent-mode and org-num-mode, before setting your customization. Deferring such invoking commands, e.g. (org-indent-mode) after advice-add part solves your problem and, similarly if you put (org-num-mode) after format function setting, you'll get desired result.