Permalink styles

In addition to #147, see commit comment. (Sorry, I couldn't find out how to attach the commit to the existing pull request).