Emacs Major Modes for Power BI
After many years of using Vim I finally understood the Emacs way. What I was trying to do all along was trying to make Vim behave exactly like Emacs.
To celebrate this I made some bad Elisp code and shared it on GitHub. I based my code on the Simple Emacs Major Mode for Syntax Coloring by Xah Lee.
Power Query Mode
This mode gives you syntax coloring and code completion inside Emacs.
It has all the functions listed by '#shared'
and color codes them.
For more details on listing all Power Query functions you can check the
post
from RADACAD.
You can download the mode going to GitHub
I still need to create an indent/pretty print function for this.
Dax Mode
To obtain all the function names I’ve extracted the names from the DAX Syntax Highlighting for Notepad++, and added a small function:
|
|
That uses the same API as Dax Studio to format/pretty print dax queries.
Hope this helps you in some way. If you have ideas of how I’ve could done this better please feel free to do a pull request or message me.
Have fun!!