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

Option to leave point at the beginning of the next symbol #9

Open
purcell opened this issue Nov 1, 2013 · 5 comments
Open

Option to leave point at the beginning of the next symbol #9

purcell opened this issue Nov 1, 2013 · 5 comments

Comments

@purcell
Copy link
Contributor

purcell commented Nov 1, 2013

It'd be nice to have the option to move to the start of the next matching symbol, rather than the end.

@chalmagean
Copy link

+1

@duerrp
Copy link

duerrp commented Nov 12, 2013

Would something like this help?

(defun smartscan-symbol-go-forward-beginning ()
"Jumps forward to the beginning of the next symbol like the one at point"
(interactive)
(smartscan-symbol-goto (smartscan-symbol-at-pt 'end) 'forward)
(smartscan-symbol-at-pt 'beginning))

@purcell
Copy link
Contributor Author

purcell commented Nov 12, 2013

FWIW, the behaviour of highlight-symbol-nav-mode (in the highlight-symbol package) is pretty nice: it leaves the cursor at the same position in the next symbol as in the starting symbol.

@duerrp
Copy link

duerrp commented Nov 13, 2013

That's interesting, thanks...

@waymondo
Copy link

waymondo commented Mar 5, 2015

+1 for purcell's suggestion of using the same position in the next symbol, at least as a defcustom option.

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

No branches or pull requests

4 participants