aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.el1
-rw-r--r--lisp/init-python.el9
2 files changed, 10 insertions, 0 deletions
diff --git a/init.el b/init.el
index 87aa87a..d7e6c91 100644
--- a/init.el
+++ b/init.el
@@ -38,6 +38,7 @@
(require 'init-flycheck)
;; Languages
(require 'init-markdown)
+(require 'init-python)
(require 'init-pkgbuild)
(require 'init-php)
(require 'init-less)
diff --git a/lisp/init-python.el b/lisp/init-python.el
new file mode 100644
index 0000000..6ed71df
--- /dev/null
+++ b/lisp/init-python.el
@@ -0,0 +1,9 @@
+;;----------------------------------------------------------------------------
+;; Python Mode
+;;----------------------------------------------------------------------------
+(add-hook 'python-mode-hook
+ (lambda ()
+ (setq indent-tabs-mode nil)
+ (setq python-indent-offset 4)))
+
+(provide 'init-python)