src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2011-06-15 22:05:06 -0500
committerLuke Hoersten <[email protected]>2011-06-15 22:05:06 -0500
commit374c5b92a1ebae65cd1545a7126d6954b93d51bc (patch)
tree0fc5b3151601b4beb9af082155bd2eb2f691cffd /init.el
parente3d726c7db3142cdc34b6dd462def182eeb6002b (diff)
Added newline support and 4-width tabs in python.
Diffstat (limited to 'init.el')
-rw-r--r--init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.el b/init.el
index 6c06566..c26ede7 100644
--- a/init.el
+++ b/init.el
@@ -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