-
Notifications
You must be signed in to change notification settings - Fork 38
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
Am I doing it wrong? #120
Comments
To wrap something in brackets you can select it with In general SHM works on a complete tree. If you're trying to type one opening delimiter then the closing one you're going to have a bad time. |
At some point when writing the above post trying that actually occurred to me. It does work but doesn't seem very intuitive to me. It still seems to me like some parts of shm is making my existing typing habits useless without any gains. It tries to guess what I'm doing and unfortunately it's sometimes wrong. In the above case it decided that I actually didn't meant to delete anything even though I pressed Here is another example: At one point I accidentally typed a I love the parts of shm that makes typing Haskell easier! I don't understand the parts where it wants to protect me from myself. Another question. It is correct that when typing something like |
Today I accidentally wrote this: eqToBool :: Eq a => a -> -> That is, I mistakenly typed two |
Found this issue while trying to understand why insertion of brackets/braces was suddenly broken! @paldepind : I have managed to disable this by adding the following to my .spacemacs [WARNING: it works for me after a quick test, but it could also break other things!]
|
I occasionally have the same problem to. My workaround is to use It seems that |
@maerten You can just press C-q then the character you actually want. So to insert a closing parenthesis, bracket or brace, just type C-q ) or C-q ] or C-q }. |
Hello @chrisdone
First of all thanks for the great work you have done for both the Haskell and the Emacs communities.
I'm finding that shm is working against me more often than it is helping me. I'm wondering if it's because I'm doing it wrong.
Just now I was trying to edit this simple piece of code:
I had just changed the definition of the function and wanted to update the signature accordingly. I did something like this:
shm/close-paren
) until the entire type class constraint was selected.shm/delete
. This left me with this (my cursor being right before thea
)a
in brackets I typed[
. This gave me both and opening and a closing bracket. So I deleted the closing bracket withdelete-char
and moved over thea
.]
to insert a closing bracket. But instead the cursor moved one character backwards (due to the end of of node behaviour of]
).[a
and type it again. I deleted thea
just fine, but the[
could not be deleted.At this point shm had prevented me both from inserting the closing bracket and from deleting the opening bracket. I often end up in such situations unable to do what I want.
In the end I managed to get rid of the opening bracket with some other editing commands.
The text was updated successfully, but these errors were encountered: