Skip to content

Org-mode src block fixes#452

Open
gudzpoz wants to merge 2 commits into
getnikola:masterfrom
gudzpoz:master
Open

Org-mode src block fixes#452
gudzpoz wants to merge 2 commits into
getnikola:masterfrom
gudzpoz:master

Conversation

@gudzpoz

@gudzpoz gudzpoz commented Jan 16, 2025

Copy link
Copy Markdown

This PR contains two simple fixes for the org-mode plugin:

  1. Use pygments' Emacs Lisp highlighting instead of Scheme highlighting for ELisp, since pygments has supported it for years (https://github.com/pygments/pygments/blame/edef94d66c2d70f05a86ac6098a69ab253b8d946/pygments/lexers/lisp.py#L1668).
  2. Use org-export-unravel-code to extract code from org-mode source blocks to correctly handle "any reference, protective commas and spurious indentation". (The code now uses define-advice to reuse the original org-html-src-block as much as possible.)

(Also, there are some indentation adjustments when I re-format the code with vanilla Emacs.)

@gudzpoz

gudzpoz commented Jan 16, 2025

Copy link
Copy Markdown
Author

I added a few more changes to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant