I did something like this for sections once. http://kitchingroup.cheme.cmu.edu/blog/2014/09/13/Make-some-org-sections-read-only/
You could probably put a :read-only in some src headers and map over src blocks instead of sections using org-element-map. Xebar Saram writes: > Hi! > I was wondering if possible at all and anyone knew of a way to make > specific orgmode code blocks read only? the rest of the org buffer would be > normal just specific code blocks > > best > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu