smart-scan
smart-scan copied to clipboard
Option to leave point at the beginning of the next symbol
It'd be nice to have the option to move to the start of the next matching symbol, rather than the end.
+1
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))
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.
That's interesting, thanks...
+1 for purcell's suggestion of using the same position in the next symbol, at least as a defcustom
option.