Skip to content
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

Doesn't play nice with auto-complete-mode #45

Closed
sheganinans opened this issue Feb 3, 2014 · 2 comments
Closed

Doesn't play nice with auto-complete-mode #45

sheganinans opened this issue Feb 3, 2014 · 2 comments

Comments

@sheganinans
Copy link

Now this could be completely due to my ignorance, but it seems that auto-complete-mode breaks indentation.

Example: http://i.imgur.com/3oGaTBh.gif

Thanks a bunch for the amazing package! I can't even believe I used to write Haskell without it!

@chrisdone
Copy link
Member

SHM's auto re-indenting works on a post-self-insert hook and just works
one character at a time. It could possibly work on a pre-self-insert
hook and then calculate the length of the string that's going to be
inserted. I don't know whether this will be intrusive or not but I'll
look into it tomorrow. Pre-insert-hooks have to be careful when adding
new content to the buffer.

An alternative can also be to see if there's a pre-insert hook for
auto-complete or a way to tell auto-complete how to insert (e.g. with
shm-insert-string).

Aistis Raulinaitis notifications@github.com writes:

Now this could be completely due to my ignorance, but it seems that auto-complete-mode breaks indentation.

Example: http://i.imgur.com/3oGaTBh.gif

Thanks a bunch for the amazing package! I can't even believe I used to write Haskell without it!


Reply to this email directly or view it on GitHub:
#45

@sheganinans
Copy link
Author

Awesome, that sounds great! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants