io12 / org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
MIT License
404 stars 14 forks source link

‘org-element-property’ is not known to be defined. #36

Closed Samoed closed 2 years ago

Samoed commented 2 years ago

Hi. When running package-install got.

In end of data:
org-fragtog.el:227:1:Warning: the function ‘org-element-property’ is not knownto be defined

When I write in org this works, but after restarting emacs (doom) it can't find it.

emacs        27.2
doom         21.12.0-alpha HEAD -> master, origin/master c7753adb
io12 commented 2 years ago

With Doom Emacs, you aren't supposed to use M-x package-install. Information for package management in Doom can be found here.

It should be enough to add

(package! org-fragtog)

to packages.el and

(use-package! org-fragtog
  :hook (org-mode . org-fragtog-mode))

to config.el.

Let me know if this solves your issue.

Samoed commented 2 years ago

That's work. Thank you.