From 825dca7919a58202eae9edef6b9e89e3c5c3e0d7 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 26 Mar 2013 11:54:04 -0700 Subject: [PATCH] Added ignore, turn subword mode on for python mode. --- .gitignore | 3 ++- init.el | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b36739c1..2fe01e92 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ auto-save-list eproject.lst *.elc .smex-items -places \ No newline at end of file +places +backups \ No newline at end of file diff --git a/init.el b/init.el index c16b9673..440e5c09 100644 --- a/init.el +++ b/init.el @@ -100,7 +100,10 @@ (setq tab-width 4 indent-tabs-mode t python-indent-offset 4)) -(python-tabs) + +;; Yelp always uses tabs. +(add-hook 'python-mode-hook 'python-tabs) +(add-hook 'python-mode-hook 'subword-mode) ;; Yelp always uses tabs. (add-hook 'python-mode-hook 'python-tabs)