Commit graph

196 commits

Author SHA1 Message Date
Dan LaManna
5a0657ed16 lang/python: use error! instead of assert! 2020-02-23 14:18:54 -05:00
Dan LaManna
fdba4472fc lang/python: reformat checks to prefer unless 2020-02-10 22:04:27 -05:00
Dan LaManna
02271f507e lang/python: combine :editor format checks 2020-02-10 19:55:49 -05:00
Dan LaManna
a9a04a6924 lang/python: assert when python isn't installed 2020-02-10 19:55:00 -05:00
Dan LaManna
00e2f2cc6f lang/python: add additional checks 2020-01-24 12:25:01 -05:00
Henrik Lissner
4eec1141c1
Ensure anaconda-mode attempts to activate after lsp 2020-01-18 22:02:17 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
Henrik Lissner
12094788d7
Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
Henrik Lissner
4acd60aba3
Update lsp-python-ms config to reflect changes upstream
mspyls should be installed with M-x lsp-install-server from now on.
2020-01-10 04:59:01 -05:00
Henrik Lissner
dafa4deef4
lang/python: autoload lsp-python-ms setup/update commands
And set lsp-python-ms-python-executable-cmd a little sooner, to make it
easier for folks to change.
2019-12-28 13:52:15 -05:00
Henrik Lissner
327d359fd3
lang/python: silence errors when python isn't present 2019-12-22 23:53:04 -05:00
Rakan Alhneiti
304af70000
Update optimize import to use py-isort 2019-12-15 16:50:31 +01:00
Rakan Alhneiti
a64b3bdceb
Add an entry in the readme for the isort prequisite 2019-12-15 16:50:31 +01:00
Rakan Alhneiti
eeafec2df0
Make isort default python import sorting package 2019-12-15 16:50:30 +01:00
Rakan Alhneiti
7d09921a29
Add isort feature to readme 2019-12-15 16:50:24 +01:00
Rakan Alhneiti
8e844eada1
Add py-isort feature to the python module 2019-12-11 11:27:50 +01:00
Henrik Lissner
7a34c56e52
lang/python: don't update buffer-dedicated REPLs 2019-12-05 16:21:08 -05:00
Dan LaManna
7c2e4cd27a
lang/python: fix minor documentation mistakes 2019-11-21 12:48:50 -05:00
Henrik Lissner
ffb4aa91da
lang/python: minor refactor & reformatting 2019-11-17 16:48:25 -05:00
Henrik Lissner
39f01450cb
lang/python: load flycheck-cython conditionally 2019-11-17 01:23:45 -05:00
Henrik Lissner
2dd27260bb
lang/python: move pipenv keybinds to pipenv config
Why was it under pyvenv?
2019-11-12 20:35:14 -05:00
Henrik Lissner
f2906b073f
Fix #2004: wrong-type-arg stringp error from pyvenv 2019-11-02 13:41:55 -04:00
Henrik Lissner
244671e388
lang/python: mention lsp-python-ms hack in README 2019-10-28 23:23:12 -04:00
Henrik Lissner
423c2958b6
lang/python: load lsp-python-ms after python
To isolate errors caused upstream (e.g. emacs-lsp/lsp-python-ms#68)
2019-10-24 17:03:03 -04:00
Henrik Lissner
9177c1b07a
lang/python: ensure anaconda is started after lsp 2019-10-23 22:09:28 -04:00
Henrik Lissner
42421a765d
Avoid fallback completion if lsp--buffer-deferred 2019-10-23 22:08:28 -04:00
Henrik Lissner
0b67251159
tools/eval: associate plist with repl handlers
Also consolidates all REPLs (opened through the :tools eval module)
under one popup rule, which inhibits ESC from prematurely closing
them (#1944), and cleans up after their buffers *only* if their handlers
weren't specified to :persist, e.g.

  (set-repl-handler! 'some-mode #'some-repl-handler :persist t)

Also standardized ESS's REPL commands.
2019-10-23 21:41:23 -04:00
Henrik Lissner
9f332c0201
lang/python: lsp-python-ms-python-executable-cmd = python-shell-interpreter 2019-10-21 06:26:57 -04:00
Henrik Lissner
9b25582be1
Reduce list of root files projectile searches for
And define them on a per-module basis. This reduces the number of file
checks it performs, particularly for non-project files.

Might help #1317
2019-10-19 22:22:49 -04:00
Gerry Agbobada
8820a70a69 Review 2019-10-17 08:51:18 +02:00
Gerry Agbobada
02e96926fd Add documentation 2019-10-17 08:49:54 +02:00
Gerry Agbobada
cfc5a0801c Add cython-specific flag and packages 2019-10-17 08:49:54 +02:00
Henrik Lissner
2a943437a2
lang/python: fix missing +modeline-update-env-in-all-windows-h
...when :ui modeline is disabled.
2019-10-07 15:34:12 -04:00
Henrik Lissner
051bceb0a8
Refactor localleader keybinds #1270
Introduces a select few of the localleader keybind standards proposed in
issue #1270, corrects a few typos and introduces more localleader
keybinds in general.

Co-authored-by: yuhan0 <>
2019-10-04 22:04:47 -04:00
Henrik Lissner
c023cef415
Merge pull request #1815 from bersace/pyenv-set-version-from-file
lang/python: recognize .python-version files
2019-10-04 12:13:03 -04:00
Oguz Serbetci
3eac1b296c
Correct a requirement in README.org 2019-10-04 13:34:56 +02:00
Étienne BERSAC
16ea03df4d
Set python version from .python-version file
This allow Doom Emacs to behave like shims, and respect Pyenv version
chosen by .python-version file.

Stolen from b252d252b0/layers/+lang/python/funcs.el (198).
2019-10-04 08:56:25 +02:00
Henrik Lissner
3471828f9e
Merge pull request #1592 from shanavas786/pipenv-bindings
lang/python: add pipenv keybinds
2019-10-03 15:02:48 -04:00
Maximiliano
c0bd0c71c2 Add lang/python/README.org (#1844) 2019-10-03 12:40:46 -04:00
Henrik Lissner
4d910accc9
lang/python: revise comments in conda config 2019-09-22 14:05:03 -04:00
Henrik Lissner
b1f9965fe7
lang/python: install lspyls in doom-etc-dir #1776 2019-09-11 23:41:08 -04:00
uelei
2b0cb80138
sort python imports 2019-08-09 20:09:18 -03:00
Henrik Lissner
3423974234
Minor refactors & tweaks across the board 2019-08-06 14:50:42 -04:00
Henrik Lissner
1e7df8046c
lang/python: disable electric indentation #1593
Electric indentation is only as good as the underlying indenter.
2019-07-28 16:10:54 +02:00
Henrik Lissner
26f9e2cdeb
lang/python: load anaconda-mode a little sooner
So its hooks take effect in the first buffer.
2019-07-28 02:38:27 +02:00
Henrik Lissner
059030be49
lang/python: ensure anaconda-mode in first python buffer 2019-07-28 02:32:25 +02:00
Henrik Lissner
afc22e4265
lang/python: fix dont-auto-install-server advice
The function being overriden takes no arguments.
2019-07-28 02:32:25 +02:00
Henrik Lissner
19dd4e8db8
Correct more inline hook defuns 2019-07-28 02:32:25 +02:00
Henrik Lissner
0a05fd09c3
Merge pull request #1603 from nelson-liu/patch-1
Update list of lang/python considered conda homes
2019-07-27 23:43:32 +02:00
Nelson Liu
fa0f876076
Add new homebrew cask anaconda install path 2019-07-27 11:11:47 -07:00