defunkt / gist.el

Yet another Emacs paste mode, this one for Gist.
550 stars 90 forks source link

Ask about changing filename instead of silently adding an extension. #120

Open aculich opened 4 years ago

aculich commented 4 years ago

For example, a file named .cvimrc automatically gets renamed as .cvimrc.txt and there is no way to override that with gist-supported-modes-alist to have no extension since a . always gets appended.

https://github.com/defunkt/gist.el/blob/314fe6ab80fae35b95f0734eceb82f72813b6f41/gist.el#L210

If the file already has a name, then just use it! If it is a buffer with no file associated then it's worthwhile guessing/asking about the filename, but don't otherwise change it.