;; load-path contains ${prefix}/share/emacs/site-lisp and its subdirecotries.
;; See #12115, #29232, #32146.
(setq load-path (cons "/opt/local/share/emacs/site-lisp" load-path))
(if (file-readable-p "/opt/local/share/emacs/site-lisp")
    (let ((default-directory "/opt/local/share/emacs/site-lisp"))
      (if (file-readable-p "/opt/local/share/emacs/site-lisp/subdirs.el")
          (load "/opt/local/share/emacs/site-lisp/subdirs.el")
        (if (fboundp 'normal-top-level-add-subdirs-to-load-path)
            (normal-top-level-add-subdirs-to-load-path)))))

;; Info-directory-list contains ${prefix}/share/info. See #32148.
(setq Info-default-directory-list (cons "/opt/local/share/info" Info-default-directory-list))

;; Look in MacPorts ${prefix} for tree-sitter parser libraries
(when (boundp 'treesit-extra-load-path)
  (setq treesit-extra-load-path (cons "/opt/local/lib" treesit-extra-load-path)))
