-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option to use lowercase language name in gfm blocks #71
Comments
I just saw #59 but I admit I'm not sure I understand it. I noticed of course that I could "add" my own language, so for example if I type To be clear, I of course don't mind (and in fact appreciate) the fact that the names are capitalized in the completing-read list, what I'm saying is that I would prefer it if the chosen language was inserted as a lower-case version of it. |
I agree that the lowercased version is more common; I think this is what @jrblevin was hinting at in his earlier issue on this topic. #73 adds a defcustom Essentially, it now defaults to using the lowercased version of a language for all of the "preloaded" languages. If it parses a buffer upon opening and finds languages that are not preloaded (this includes alternative capitalizations), it adds those as candidates. This means that within a file, if that file uses the uppercased versions of "Ruby" or "Python", for example, those will be included as completions, but only within that buffer. Otherwise, the lowercased versions of all languages will be preferred for completion of a partial input. I've added this behavior to the test case for this feature. |
Amazing! I really appreciate it, thank you! |
emacs-helm/helm#1331 I've made an issue on helm, so that's definitely a helm thing. Should be fine for everyone else. |
Good idea. I also use lowercase names (in my workflows they usually translate to class names for XHTML elements), so I appreciate having this flexibility. |
First of all, woah!! Thanks a lot @cosmicexplorer for your great work on #54!
It looks and seems to work beautifully! I had been following what seemed to me like a convention which was to use the lowercase representation of language names. The implementation of #54 seems to use the capitalized language, e.g.
JavaScript
orPython
versusjavascript
orpython
. I know it's such a minor gripe! But I was wondering if you could possibly add an option to perhaps(downcase chosen-candidate)
before inserting it?I already have many codeblocks that use the lowercase names (which I really prefer) and everyone else I've seen does the same thing, so I'm not too eager to break with that convention and have mixed styles.
The text was updated successfully, but these errors were encountered: