Skip to content

amno1/org-babel-hide-markers-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A small hack to reduce clutter in my init file, but can be potentially used elsewhere too. It will hide source code block markers by changing their ‘invisible’ text property.

Installation

Either clone this repo or just download ‘ob-hide-markers.el’. From there you have option to either M-x package-install-file RET ob-hide-markers.el RET or just put the file somewhere where Emacs can find it and do appropriate autoload or require.

Usage

M-x org-babel-hide-markers-mode to turn it on/off.

Issues

Due to how font-lock mechanism in Emacs works, if fontification is triggered after the markers were hidden, the properties will be removed and markers revealed. For this to work this mode has to run after the font-lock has done it’s processing, so it calls font-lock-ensure before it does it’s work, which might be costly (double-work).

Screenshots

./mode.png

./init.png

License

GPL v3. For details, see the atached license file.

About

Hide/show source code blocks markers in Org-mode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published