jxq0 / org-tidy

🧹 An Emacs minor mode to automatically tidy org-mode property drawers
GNU General Public License v3.0
98 stars 7 forks source link

org-tidy-properties-style "fringe" doesn't seem to work #21

Open whbos opened 7 months ago

whbos commented 7 months ago

When using the config below, the property drawers show up instead of just using the fringe:

(use-package org-tidy
  :ensure t
  :custom
  (org-tidy-properties-style "fringe")
  :hook
  (org-mode . org-tidy-mode))

Removing the :custom part from makes the '#' show up next to the header, so I take it the package is installed correctly.

I can reproduce the error using the steps below:

# System info:
sw_vers
ProductName:        macOS
ProductVersion:     14.2.1
BuildVersion:       23C71

# Installed Emacs 29.2 using Homebrew:
brew tap d12frosted/emacs-plus
brew install emacs-plus@29
emacs --version | head -1
GNU Emacs 29.2

# Create testing directory:
export EMACS_D=/tmp/emacs.test
mkdir -p $EMACS_D

# Using Elpaca as package manager:
wget -qO $EMACS_D/early-init.el https://raw.githubusercontent.com/progfolio/elpaca/master/doc/early-init.el
wget -qO $EMACS_D/elpaca.el     https://raw.githubusercontent.com/progfolio/elpaca/master/doc/init.el

cat > $EMACS_D/init.el <<EOF
(load-file (concat user-emacs-directory "elpaca.el"))

(use-package org-tidy
  :ensure t
  :custom
  (org-tidy-properties-style "fringe")
  :hook
  (org-mode . org-tidy-mode))

(elpaca-wait)
EOF

cat > $EMACS_D/org-tidy-test.org <<EOF
* Heading 1
:PROPERTIES:
:END:
EOF

emacs --no-site-file --no-site-lisp --no-splash --init-directory=$EMACS_D --find-file $EMACS_D/org-tidy-test.org
whbos commented 7 months ago

Totally forgot to thank you for making this package available, org documents are so much more readable using it 😄

jxq0 commented 7 months ago

@whbos Thanks for your feedback. org-tidy-properties-style should be a symbol, not a string. You can try this:

(setq org-tidy-properties-style 'fringe)

I will point this out in the document.