Переглянути джерело

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

undefined
Bingen Eguzkitza 3 роки тому
джерело
коміт
c959c270c3
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

Завантаження…
Відмінити
Зберегти