When coding in elisp, I find that I’m stopping at hyphens when moving by words, and would prefer to ignore them.
What’s the simplest way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
M-x modify-syntax-entry RET - RET w RETshould do it. Or if you prefer an elisp snippet that you can add into a hook,(modify-syntax-entry ?- "w")The syntax table for a mode contains information on what constitutes various syntactic classes (e.g. words, spaces etc.). These are used to determine the operation of commands such as
forward-wordetc. Modifying it change the behaviour of these commands.