Open richardh9935 opened 5 years ago
If you put only prismatic-parens:toggle
into your init.coffee, you will get that error. That is the correct syntax for referring to the command in your keymap. Unfortunately, atom doesn't expose methods for each command.
To call it from your init script, you'd need to use something like
atom.commands.dispatch(atom.workspace, 'prismatic-parens:toggle')
However, I'm currently unable to get that to work:
It does work if you call it via the command palette, but I understand it's inconvenient to have to do that over and over again. I'll put some questions out to the slack to see what everyone thinks. Maybe we can find something.
Caleb, Thanks for your reply. Good luck finding the answers.
richard.
On Mon, 25 Mar 2019 at 08:23, Caleb Meyer notifications@github.com wrote:
If you put only prismatic-parens:toggle into your init.coffee, you will get that error. That is the correct syntax for referring to the command in your keymap. Unfortunately, atom doesn't expose methods for each command.
To call it from your init script, you'd need to use something like
atom.commands.dispatch(atom.workspace, 'prismatic-parens:toggle')
However, I'm currently unable to get that to work: [image: image] https://user-images.githubusercontent.com/3342777/54886020-13062c80-4e51-11e9-9ee8-ce29da695939.png
It does work if you call it via the command palette, but I understand it's inconvenient to have to do that over and over again. I'll put some questions out to the slack to see what everyone thinks. Maybe we can find something.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/calebmeyer/prismatic-parens/issues/2#issuecomment-476001557, or mute the thread https://github.com/notifications/unsubscribe-auth/ATT852jnWzYGONwqFv_KmGhQ6Irgl7Qwks5vZ-zigaJpZM4cFViL .
Richard, I did get a few comments on slack: https://atomio.slack.com/archives/C04VAHX6F/p1553530996013700?thread_ts=1553462687.011700&cid=C04VAHX6F https://atomio.slack.com/archives/C04VAHX6F/p1553530538013600
I haven't had time to see if they would work yet, and I don't anticipate having that time within the next week or so. Sorry for the long wait.
I put prismatic-parens:toggle into init.coffee but it won't start. Error message is
Failed to load /Users/richardh9935/.atom/init.coffee prismatic is not defined
I suspect the hyphen or the capitalisation is incorrect. What should I have put in?