1

Simply call the function py-underscore-word-syntax-p-off in your config file: (use-package python-mode :ensure t :config (py-underscore-word-syntax-p-off)) Edited: use helper function instead of setting py-underscore-word-syntax-p-off programmatically.


1

This can be done, although Emacs doesn't seem to provide useful info about multi-line comment ends, so it needs a hard coded check for */. (defun my-end-of-comment () (interactive) (let ((state (syntax-ppss)) (point-init (point))) ;; We may be at the comment start, which isn't considered a comment. (unless (nth 4 state) (save-...


Only top voted, non community-wiki answers of a minimum length are eligible