"Eduardo V." <lalo...@gmail.com> writes: > I'm getting an error trying to add my class to org-mode > > (add-to-list 'org-latex-classes ieeetran-class) > Symbol's value as variable is void: org-latex-classes > > What is the org-mode 9 way of adding classes? >
It's still org-latex-classes afaik - you are trying to add the class before ox-latex is loaded perhaps? > Also, on org-mode 8 i added this hook to remove headlines and it worked > perfectly, now it complains > about 'tree' being a void variable too > > (defun org-remove-headlines (backend) > "Remove headlines with :no_title: tag." > (org-map-entries (lambda () (let ((beg (point))) > (outline-next-visible-heading 1) > (backward-char) > (delete-region beg (point)))) > "no_export" tree) > (org-map-entries (lambda () (delete-region (point-at-bol) (point-at-eol))) > "no_title")) > > (add-hook 'org-export-before-processing-hook #'org-remove-headlines) > Untested, but afaik, it should be a symbol, so it needs a quote: 'tree Not sure why it would work in org 8 - afaict, it should fail in exactly the same way, unless tree was bound globally. -- Nick