Trevoke / sqlup-mode.el

An emacs minor mode to upcase SQL keyword and functions
GNU General Public License v3.0
88 stars 15 forks source link

Support NoSQL databases like Redis, MongoDB etc #39

Closed stardiviner closed 8 years ago

stardiviner commented 8 years ago

as the title said. I found Emacs ELPA has package called redis.el https://github.com/emacs-pe/redis.el

It has a mode called reids-mode for editing commands. I hope sqlup-mode can support them.

Trevoke commented 8 years ago

Hi,

Thanks for the feature request. I see that redis.el has a list of keywords in the mode. Since I was able to leverage emacs' built-in sql.el, this should be doable.

stardiviner commented 8 years ago

That's great.

stardiviner commented 8 years ago

Any progress on this? (I'm thinking sqlup-mode should support other NoSQL keywords too, so a better name like database-keyword-up or something else?)

Trevoke commented 8 years ago

I added support for redis-mode. We can take a look at renaming the mode later when there's a third or fourth request for other capitalization that gets implemented :)

Trevoke commented 8 years ago

Let me know if it works well for you.

stardiviner commented 8 years ago

I got error:

Error in post-command-hook (sqlup-capitalize-as-you-type): (void-function sqlup-keywordp)
stardiviner commented 8 years ago

https://github.com/Trevoke/sqlup-mode.el/pull/40

stardiviner commented 8 years ago

After fix this, it works now.