Changeset ac2cfa4 in dotfiles


Ignore:
Timestamp:
Jan 24, 2020, 1:18:14 AM (5 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
1dff69f
Parents:
aadf337
git-author:
Mikhail Kirillov <w96k@…> (01/24/20 01:05:21)
git-committer:
Mikhail Kirillov <w96k@…> (01/24/20 01:18:14)
Message:

Python; Flycheck; Emacs config update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs

    raadf337 rac2cfa4  
    133133;;; Live-checking text
    134134(use-package flycheck
    135   :config
    136   (add-hook 'after-init-hook #'global-flycheck-mode)
     135  :init (global-flycheck-mode)
     136  :config
    137137  (add-hook 'flycheck-mode-hook #'my/use-eslint-from-node-modules)
    138138  (setq-default flycheck-disabled-checkers
     
    140140                        '(javascript-jshint)))
    141141  (flycheck-add-mode 'javascript-eslint 'web-mode)
    142   (setq-default flycheck-temp-prefix ".flycheck"))
     142  (setq-default flycheck-temp-prefix ".flycheck")
     143  (custom-set-variables
     144   '(flycheck-python-flake8-executable "python3")
     145   '(flycheck-python-pycompile-executable "python3")
     146   '(flycheck-python-pylint-executable "python3")))
    143147
    144148;;; No tabs
     
    238242
    239243;;; Python
    240 (use-package elpy
    241   :init
    242   (elpy-enable)
    243   :config
    244   (setq elpy-rpc-python-command "python3")
    245   (when (load "flycheck" t t)
    246     (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
    247     (add-hook 'elpy-mode-hook 'flycheck-mode)))
     244;; (use-package elpy
     245;;   :init
     246;;   (elpy-enable)
     247;;   :config
     248;;   (setq python-shell-interpreter "python3")
     249;;   (setq elpy-rpc-python-command "python3")
     250;;   (when (load "flycheck" t t)
     251;;     (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
     252;;     (add-hook 'elpy-mode-hook 'flycheck-mode)))
     253
     254(use-package anaconda-mode
     255  :hook (python-mode . anaconda-mode)
     256  :config (setq python-shell-interpreter "python3"))
     257
     258(use-package company-anaconda
     259  :after company
     260  :config (add-to-list 'company-backends '(company-anaconda :with company-capf)))
     261
     262(use-package company-jedi
     263  :after company
     264  :config  (add-to-list 'company-backends 'company-jedi))
    248265
    249266;;; Vue
Note: See TracChangeset for help on using the changeset viewer.