Update elfeed feeds list + clean python mode + Fix c-mode indentation issue.
This commit is contained in:
@@ -6,26 +6,16 @@
|
||||
(defun user--python-format-before-save ()
|
||||
"Python cleanup and format before save buffer."
|
||||
(lsp-format-buffer)
|
||||
(delete-trailing-whitespace)
|
||||
)
|
||||
(delete-trailing-whitespace))
|
||||
|
||||
(defun user--python-mode-hook ()
|
||||
"Python mode hook."
|
||||
|
||||
;; lsp python customization
|
||||
(lsp-register-custom-settings
|
||||
'(("pylsp.plugins.pyls_mypy.enabled" t t)
|
||||
;; ("pylsp.plugins.flake8.maxLineLength" 120)
|
||||
;; ("pylsp.plugins.pycodestyle.maxLineLength" 120)
|
||||
("pylsp.plugins.flake8.maxLineLength" 100)
|
||||
("pylsp.plugins.yapf.enabled" t t)
|
||||
("pylsp.plugins.pylint.enabled" t t)))
|
||||
;; ("pyls.plugins.pyls_mypy.live_mode" nil t)
|
||||
;; ("pyls.plugins.pyls_black.enabled" t t)
|
||||
;; ("pyls.plugins.pyls_isort.enabled" t t)
|
||||
;; ("pyls.plugins.flake8.enabled" t t)))
|
||||
|
||||
(setq lsp-pylsp-plugins-flake8-max-line-length 120)
|
||||
(setq lsp-pylsp-plugins-pycodestyle-max-line-length 120)
|
||||
|
||||
;; Enable virtualenv support.
|
||||
(when(feature-p 'pyvenv)
|
||||
@@ -41,30 +31,7 @@
|
||||
(subword-mode t)
|
||||
|
||||
;; ElDoc shows function documentation as you type
|
||||
(eldoc-mode t)
|
||||
|
||||
;; Select pylint for ckecing
|
||||
;; (setq flycheck-checker nil)
|
||||
;; (setq-default flycheck-disabled-checkers '(lsp))
|
||||
;; (flycheck-add-mode 'python-flake8 'python-mode)
|
||||
;; (flycheck-select-checker 'python-pycheckers)
|
||||
|
||||
;; (flycheck-add-next-checker 'lsp 'python-pycheckers)
|
||||
|
||||
;; (setq-local lsp-pylsp-plugins-pylint-enabled nil)
|
||||
|
||||
;; (with-eval-after-load "lsp-mode"
|
||||
;; (add-to-list 'lsp-disabled-clients 'pyls)
|
||||
;; (add-to-list 'lsp-enabled-clients 'pylsp))
|
||||
|
||||
;; (Bindings) ;;
|
||||
;; (when(feature-p 'nose)
|
||||
;; (user/bind-key-local: code: test 'nosetests-all))
|
||||
;; (when(feature-p 'pyvenv)
|
||||
;; (user/bind-key-local: code: virtual 'pyvenv-workon))
|
||||
;; (when(feature-p 'lsp-pyright)
|
||||
;; (require 'lsp-pyright)))
|
||||
)
|
||||
(eldoc-mode t))
|
||||
|
||||
(use-package python
|
||||
:if (executable-find "python")
|
||||
@@ -90,7 +57,6 @@
|
||||
python-shell-prompt-regexp "In \\[[0-9]+\\]: "
|
||||
python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: "
|
||||
python-shell-completion-setup-code "from IPython.core.completerlib import module_completion"
|
||||
python-shell-completion-module-string-code "';'.join(module_completion('''%s'''))\n"
|
||||
python-shell-completion-string-code "';'.join(get_ipython().Completer.all_completions('''%s'''))\n"))
|
||||
|
||||
(with-executable 'bpython
|
||||
|
Reference in New Issue
Block a user