I have always used a function in Vim that, when used at the beginning of a line, replaces certain characters with HTML entities. A shortened version is:
" Replace special typographic characters with entities
nnoremap ,r :call ReplaceChar()
Can anyone tell me how I could go about implementing this in Atom? I have tried the html-entities package, which is great, but gives some unexpected entities, for my use anyway. Thanks much!