Permalink
Browse files

Treat underscore as a word for python-mode.

  • Loading branch information...
1 parent d833f24 commit 1ac39481adb7b3032c7ea1aed13648f5bed797ac @winfred-lu committed Jan 25, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 winfred-program.el
View
@@ -21,6 +21,10 @@
;; settings for Python programming
+(add-hook 'python-mode-hook
+ (lambda ()
+ (modify-syntax-entry ?_ "w" py-mode-syntax-table)))
+
(require 'ipython)
(setq python-python-command "ipython"
ipython-command "/usr/bin/ipython"

0 comments on commit 1ac3948

Please sign in to comment.