by oxff · 4y ago · 0 comments
You can't be further from the truth. I was a power Emacs user for almost a decade with virtually no Elisp knowledge. I could set variables, but as an example, couldn't write a loop or function.
Of course, once you know elisp, you'll find excuses to use it.
https://www.gnu.org/software/emacs/manual/html_node/eintr/in...
What‽ S-expressions are head-and-shoulders better at declarative configuration than JSON. Compare these two options (the JSON is from https://cloud.google.com/appengine/docs/admin-api/creating-c...):
{
"deployment": {
"files": {
"example-resource-file1": {
"sourceUrl": "https://storage.googleapis.com/[MY_BUCKET_ID]/example-application/example-resource-file1"
},
"images/example-resource-file2": {
"sourceUrl": "https://storage.googleapis.com/[MY_BUCKET_ID]/example-application/images/example-resource-file2"
},
}
},
"id": "v1",
"handlers": [
{
"urlRegex": "/.*",
"script": {
"scriptPath": "example-python-app.py"
}
},
],
"runtime": "python27",
"threadsafe": true,
}
vs. (app (deployment
(files (example-resource-file-1 "https://storage.googleapis.com/[MY_BUCKET_ID]/example-application/example-resource-file1")
(images/example-resource-file2 "https://storage.googleapis.com/[MY_BUCKET_ID]/example-application/images/example-resource-file2")))
(id v1)
(handlers ("/.*" (script "example-python-app.py")))
(runtime python27)
(threadsafe true))
And that's just a naïve translation — a more diligent reinterpretation would be even better. Still, even the relatively-thoughtless translation is demonstrably better, easier to grok and think about.Given equal experience with reading json data and lisp data you'd almost certainly prefer the much shorter (but lossless) lisp data.
hmm... do you know about M-x customize ?
> Node development environment running inside a container with VSCode. I don't even know if you can do that with Emacs to begin with.
Install docker-tramp.el and then `C-x C-f /docker:image_name: RET` to open a dired buffer in the container.
`M-x shell RET` for a shell in container.
Use this often? Make a bookmark with `C-x r m bookmark name RET`, then next time get to it from your bookmark list accessible with `C-x r b`.
I think they are referring to the integration of VSCode with Docker. I.E. build, deploy and run your project in a clean container environment quickly using a workflow that is intuitive to VSCode users.
That being said, I know for me it would be fairly trivial to workout this same type of integration for myself with Vim. Although I am not an Emacs user I am positive it wouldn't be difficult to do something similar. I don't really see this as a feature I would ever care to implement or find important for myself.
EDIT: to be clear, I am a Vim user and do not find VSCode intuitive at all -- but I have seen how it seems to really work well for a lot of people
https://www.gnu.org/software/emacs/manual/html_node/tramp/in...
https://www.gnu.org/software/emacs/manual/html_node/tramp/Cu...