# HG changeset patch # User Luke Hoersten # Date 1308193506 18000 # Node ID cfdd7b253085abe2687e5cb36a14182d0aae5235 # Parent ade8c2cc1b042f06b0e0c09964a47b0c40586f70 Added newline support and 4-width tabs in python. diff -r ade8c2cc1b04 -r cfdd7b253085 init.el --- a/init.el Sun Jun 05 17:47:30 2011 -0500 +++ b/init.el Wed Jun 15 22:05:06 2011 -0500 @@ -13,7 +13,8 @@ indent-tabs-mode nil ; only uses spaces for indentation split-width-threshold 181 ; min width to split window horizontially split-height-threshold 120 ; min width to split window vertically - reb-re-syntax 'string) ; use string syntax for regexp builder + reb-re-syntax 'string ; use string syntax for regexp builder + require-final-newline 'visit-save) ; add a newline automatically (put 'set-goal-column 'disabled nil) ; enable goal column setting (put 'narrow-to-region 'disabled nil) ; enable hiding @@ -90,7 +91,7 @@ space-before-tab space-after-tab)) ;;; python-mode -(add-hook 'python-mode-hook (lambda () (setq indent-tabs-mode t))) +(add-hook 'python-mode-hook (lambda () (setq tab-width 4))) ;;; org-mode (add-hook