Ver código fonte

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

master
Bingen Eguzkitza 3 anos atrás
pai
commit
4f3955465c
1 arquivos alterados com 9 adições e 0 exclusões
  1. +9
    -0
      lisp/init-python-mode.el

+ 9
- 0
lisp/init-python-mode.el Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar