Skip to content

mskorzhinskiy/org-margin-bullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draw org-mode bullets on margin

This is a simple function that substitutes org-indent--compute-prefixes function from the org-indent package. Paired with org-hide-leading-stars configuration variable or properly configured org-superstar-mode package, can produce really nice-looking headlines.

Install

(use-package org-margin-bullet
  :config (org-margin-bullet-load))

Doom emacs

Package recipe:

(package! org-margin-bullet
  :recipe (:repo "mskorzhinskiy/org-margin-bullet"
           :host github :branch "main"))

Usage and example configuration

Style 1

style_1.png

(use-package org-superstar
  :hook (org-mode . org-superstar-mode)
  :config
  (setq org-superstar-headline-bullets-list '(("" . "x")))
  (setq org-superstar-leading-bullet "")
  (setq org-hide-leading-stars nil)
  (setq org-superstar-special-todo-items t)
  (setq org-superstar-todo-bullet-alist
        '(("TODO" "☐ ")
          ("NEXT" "☐ ")
          ("DONE" "☑ "))))

(set-ligatures! 'org-mode
    :alist '(("TODO " . "")
             ("DONE " . "")))

Style 2

Notice that first several headline levels are exactly on the same line.

style_2.png

Moving things around also works wonderful:

style_2_moving.gif

(use-package org-superstar
  :hook (org-mode . org-superstar-mode)
  :config
  (setq org-superstar-headline-bullets-list '(("" . "x")))
  (setq org-superstar-leading-bullet "")
  (setq org-hide-leading-stars nil)
  (setq org-superstar-special-todo-items t)
  (setq org-superstar-todo-bullet-alist
        '(("TODO" "☐ ")
          ("NEXT" "☐ ")
          ("DONE" "☑ "))))

(set-ligatures! 'org-mode
    :alist '(("TODO " . "")
             ("DONE " . "")))

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published