diff --git a/docs/modules.org b/docs/modules.org index 93e4c2ba5..4ac4c2230 100644 --- a/docs/modules.org +++ b/docs/modules.org @@ -127,7 +127,7 @@ Modules that bring support for a language or group of languages to Emacs. + [[file:../modules/lang/nim/README.org][nim]] - TODO + nix - TODO + [[file:../modules/lang/ocaml/README.org][ocaml]] =+lsp= - TODO -+ [[file:../modules/lang/org/README.org][org]] =+brain +dragndrop +gnuplot +hugo +ipython +journal +jupyter +noter +pandoc +pomodoro +present +roam= - TODO ++ [[file:../modules/lang/org/README.org][org]] =+brain +dragndrop +gnuplot +hugo +ipython +journal +jupyter +noter +pandoc +pomodoro +present +pretty +roam= - TODO + [[file:../modules/lang/php/README.org][php]] =+hack +lsp= - TODO + plantuml - TODO + purescript =+lsp= - TODO diff --git a/modules/lang/org/README.org b/modules/lang/org/README.org index 7dcc2ad20..78e862be1 100644 --- a/modules/lang/org/README.org +++ b/modules/lang/org/README.org @@ -70,13 +70,15 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode + =+pomodoro= Enables a pomodoro timer for clocking time on tasks. + =+present= Enables integration with reveal.js, beamer and org-tree-slide, so Emacs can be used for presentations. ++ =+pretty= Enables pretty unicode symbols for bullets and priorities, and + better syntax highlighting for latex. Keep in mind: this can be expensive. If + org becomes too slow, it'd be wise to disable this flag. + =+roam= Enables org-roam integration. This requires ~sqlite3~ to be installed on your system. ** Plugins + [[https://github.com/hniksic/emacs-htmlize][htmlize]] + [[https://github.com/astahlman/ob-async][ob-async]] -+ [[https://github.com/integral-dw/org-superstar-mode][org-superstar]] + [[https://github.com/rexim/org-cliplink][org-cliplink]] + [[https://github.com/magit/orgit][orgit]] + [[https://orgmode.org/][org-plus-contrib]] @@ -122,6 +124,9 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode + [[https://github.com/anler/centered-window-mode][centered-window]] + [[https://github.com/takaxp/org-tree-slide][org-tree-slide]] + [[https://gitlab.com/oer/org-re-reveal][org-re-reveal]] ++ =+pretty= + + [[https://github.com/integral-dw/org-superstar-mode][org-superstar]] + + [[https://github.com/harrybournis/org-fancy-priorities][org-fancy-priorities]] + =+roam= + [[https://github.com/org-roam/org-roam][org-roam]] + [[https://github.com/org-roam/company-org-roam][company-org-roam]] diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 7f25261e1..c06f5f09d 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -895,25 +895,6 @@ compelling reason, so..." (set-marker p nil))))) -(use-package! org-superstar ; "prettier" bullets - :hook (org-mode . org-superstar-mode) - :config - ;; Make leading stars truly invisible, by rendering them as spaces! - (setq org-superstar-leading-bullet ?\s - org-superstar-leading-fallback ?\s - org-hide-leading-stars nil) - ;; Don't do anything special for item bullets or TODOs by default; these slow - ;; down larger org buffers. - (setq org-superstar-prettify-item-bullets nil - org-superstar-special-todo-items nil - ;; ...but configure it in case the user wants it later - org-superstar-todo-bullet-alist - '(("TODO" . 9744) - ("[ ]" . 9744) - ("DONE" . 9745) - ("[X]" . 9745)))) - - (use-package! org-crypt ; built-in :commands org-encrypt-entries org-encrypt-entry org-decrypt-entries org-decrypt-entry :hook (org-reveal-start . org-decrypt-entry) diff --git a/modules/lang/org/contrib/pretty.el b/modules/lang/org/contrib/pretty.el new file mode 100644 index 000000000..3ca56e071 --- /dev/null +++ b/modules/lang/org/contrib/pretty.el @@ -0,0 +1,24 @@ +;;; lang/org/contrib/pretty.el -*- lexical-binding: t; -*- + +(after! org + (setq org-highlight-latex-and-related '(native script entities))) + + +(use-package! org-superstar ; "prettier" bullets + :hook (org-mode . org-superstar-mode) + :init + :config + ;; Make leading stars truly invisible, by rendering them as spaces! + (setq org-superstar-leading-bullet ?\s + org-superstar-leading-fallback ?\s + org-hide-leading-stars nil + org-superstar-todo-bullet-alist + '(("TODO" . 9744) + ("[ ]" . 9744) + ("DONE" . 9745) + ("[X]" . 9745)))) + + +(use-package! org-fancy-priorities ; priority icons + :hook (org-mode . org-fancy-priorities-mode) + :config (setq org-fancy-priorities-list '("⚑" "⬆" "■"))) diff --git a/modules/lang/org/packages.el b/modules/lang/org/packages.el index 427a98089..b7e00a732 100644 --- a/modules/lang/org/packages.el +++ b/modules/lang/org/packages.el @@ -34,7 +34,6 @@ (package! avy) (package! htmlize :pin "86f22f211e9230857197c42a9823d3f05381deed") -(package! org-superstar :pin "17481852c1bd09afea877635a3185261fc19fd64") (package! org-yt :recipe (:host github :repo "TobiasZawada/org-yt") :pin "40cc1ac76d741055cbefa13860d9f070a7ade001") @@ -67,6 +66,9 @@ (package! org-noter :pin "9ead81d42dd4dd5074782d239b2efddf9b8b7b3d")) (when (featurep! +pomodoro) (package! org-pomodoro :pin "aa07c11318f91219336197e62c47bc7a3d090479")) +(when (featurep! +pretty) + (package! org-superstar :pin "17481852c1bd09afea877635a3185261fc19fd64") + (package! org-fancy-priorities :pin "819bb993b71e7253cefef7047306ab4e0f9d0a86")) (when (featurep! +present) (package! centered-window :recipe (:host github :repo "anler/centered-window-mode")