Kaynağa Gözat

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

undefined
Bingen Eguzkitza 3 yıl önce
ebeveyn
işleme
c959c270c3
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. +9
    -0
      lisp/init-python-mode.el

+ 9
- 0
lisp/init-python-mode.el Dosyayı Görüntüle

;;; package --- Summary
;;; Commentary:
;;; Code:
(setq auto-mode-alist (setq auto-mode-alist
(append '(("SConstruct\\'" . python-mode) (append '(("SConstruct\\'" . python-mode)
("SConscript\\'" . python-mode)) ("SConscript\\'" . python-mode))


(require-package 'pip-requirements) (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) (provide 'init-python-mode)
;;; init-python-mode.el ends here

Yükleniyor…
İptal
Kaydet