浏览代码

python: Adapt to Python 3 and add config for indentation size

master
Bingen Eguzkitza 3 年前
父节点
当前提交
4f3955465c
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      lisp/init-python-mode.el

+ 9
- 0
lisp/init-python-mode.el 查看文件

@@ -1,3 +1,6 @@
;;; package --- Summary
;;; Commentary:
;;; Code:
(setq auto-mode-alist
(append '(("SConstruct\\'" . python-mode)
("SConscript\\'" . python-mode))
@@ -5,5 +8,11 @@

(require-package 'pip-requirements)

;; See: https://github.com/purcell/emacs.d/issues/724
(setq python-shell-interpreter "python3")

(setq-default python-indent 4)
(setq-default python-indent-offset 4)

(provide 'init-python-mode)
;;; init-python-mode.el ends here

正在加载...
取消
保存