Derive from prog-mode if it exists. Closes #5.