Emacs Org-Mode & Literate Haskell

前端 未结 4 697
不知归路
不知归路 2021-02-15 12:50

In org-mode, a line starting with a colon is formatted as source code. ( http://orgmode.org/manual/Literal-examples.html )

In literate Haskell, source code lines start w

4条回答
  •  滥情空心
    2021-02-15 13:32

    I had essentially the same motivation, to use org-mode markup for my Haskell (Bird style) literate programs. I ended up using multi-mode which allows multiple emacs major modes to be used for different regions in the same buffer (there are others but multi-mode suited my requirements). I cooked up haskell-org which enables org-mode and haskell-mode to be used in a single buffer via multi-mode.

    More details in this blog entry. The setup works well enough that I use it for my Haskell coding.

提交回复
热议问题