-
Notifications
You must be signed in to change notification settings - Fork 4.9k
superword-mode and clojure-mode interact poorly. #13193
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
Comments
Repro steps are as follows:
|
@duianto please let me know if you require more detail. thank you. |
I was unable to reproduce this on my non-spacemacs distro with clojure-mode and superword-mode enabled. What makes you think its these two packages interacting? |
I reproduced this on a fresh machine w/ a fresh install of spacemacs (default config, no customization). I have no knowledge of whether it reproduces on vanilla emacs or not. The combination of things here is: a) spacemacs b) superword-mode c) clojure-mode. |
Confirmed In this example file: With the url added on the first line as a comment: ;; https://github.com/clojurebook/ClojureProgramming/blob/master/ch03-game-of-life/src/com/clojurebook/collections/life.clj pressing There's an open issue about it upstream in the There's a comment with a possible workaround: emacs-evil/evil#721 (comment)
;; For python
(add-hook 'python-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; For ruby
(add-hook 'ruby-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; For Javascript
(add-hook 'js2-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
|
This issue is actually fairly important to me. It would be nice if it could get some attention at some point. My editing experience would improve tremendously with its resolution. |
It's been reported upstream: Could you ping them in that thread. |
This is still an issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Still valid. |
This seems to be caused by an upstream issue which has not been solved for quite a long time. I will try to find a workaround in spacemacs to remove the symptoms. |
Awesome. It would be much appreciated. |
The fix in emacs-evil/evil#1931 looks good to me (though I haven't tested it much). As long as that is not merged we could do the same: (define-advice forward-evil-word (:around (orig-fun &optional count) spacemacs//respect-superword-mode)
(if (bound-and-true-p superword-mode)
(forward-evil-symbol count)
(funcall orig-fun count))) |
When superword-mode is enabled simultaneous to clojure-mode, the cursor will get stuck at the end of specific lines when advancing one word at a time.
The text was updated successfully, but these errors were encountered: