My tiny language, Foam, is coming along nicely! The following code:
tv := @textView
as := tv typingAttributes. mutableCopy
as setObject:@defaultParagraphStyle forKey:NSParagraphStyleAttributeName
@defaultTypingAttributes = as
tv setTypingAttributes:@defaultTypingAttributes
tv setDefaultParagraphStyle:@defaultParagraphStyle