Commit graph

86 commits

Author SHA1 Message Date
Henrik Lissner
69e992e54a
lang/python: minor reformatting 2018-08-12 02:46:55 +02:00
Henrik Lissner
69eb2cd40d
lang/python: improve pipenv support 2018-08-11 21:18:21 +02:00
Henrik Lissner
552b8b50c0
lang/python: pyvenv-mode -> pyvenv #777
Fixed incorrect package name.
2018-08-04 16:34:01 +02:00
Henrik Lissner
a18541851e
lang/python/doctor: check pyenv, conda & ipython 2018-08-02 00:13:00 +02:00
Henrik Lissner
9b11f8e76d
lang/python: remove +python-conda-env (unused) 2018-08-01 22:32:29 +02:00
Henrik Lissner
7ffa3c8d8d
lang/python: register ANACONDA_HOME envvar 2018-08-01 22:30:30 +02:00
Henrik Lissner
e053234992
lang/python: fix anaconda ignoring conda envs 2018-08-01 22:29:51 +02:00
Henrik Lissner
ad68f26477
Fix python mode-line persisting into other modes
And more polish for the python mode-line indicator.
2018-08-01 15:17:57 +02:00
Henrik Lissner
65f0dcef54
lang/python: remove references to removed variable 2018-08-01 01:31:12 +02:00
Henrik Lissner
90d0f334f8
lang/python: rewrite mode-line indicator (again) 2018-08-01 01:13:49 +02:00
Henrik Lissner
9cf5907c48
lang/python: update modeline on version change 2018-07-31 23:21:13 +02:00
Henrik Lissner
991199ee78
Fix PYENV -> PYENV_ROOT envvar typo 2018-07-31 23:16:18 +02:00
Henrik Lissner
b4c8584f64
lang/python: rewrite version mode-line segment 2018-07-31 23:07:22 +02:00
Henrik Lissner
d9a52e1094
Fix company/lookup settings in anaconda-mode
Applying them to python-mode means it would happen too late.
2018-07-31 19:20:58 +02:00
Henrik Lissner
560d16d651
lang/python: add support for more env managers
+ Rewritten +conda support
+ Adds +pyenv and +pyvenv flags with support.
+ New +ipython flag to enable ipython REPL support
+ Added pipenv support. This is the new default, instead of pyenv, and
  isn't hidden behind a module flag because it is officially endorsed by
  python.

Addresses #736
2018-07-31 15:51:25 +02:00
Aria
90d09e6f93 Highlight-numbers on every prog-mode 2018-07-29 12:19:56 +10:00
Henrik Lissner
e8d4b74c29
lang/python: refactor conda integration
Removes the +python-conda-home variable and guesses conda-anaconda-home
at startup.
2018-07-17 22:07:35 +02:00
Henrik Lissner
bb1171b64b
lang/python/autoload.el -> autoload/python.el 2018-07-17 20:57:32 +02:00
Henrik Lissner
0a577f3a0e
lang/python: fix pyenv version detection #736 2018-07-06 23:56:50 +02:00
Henrik Lissner
e05d7cfee0
Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling
it on demand. Also fixes void-function: flycheck-mode errors when
:feature syntax-checker is disabled. This is experimental.

Indirectly fixes #710
2018-06-22 01:49:20 +02:00
Henrik Lissner
6808c46b58
💥 Change set-popup-rule! usage
Now accepts a flat plist of all its former parameters, including new
:parameters and :actions properties to increase your control over the
fate of your windows.

The old usage of set-popup-rule! is deprecated and may not work right!

The :ui popup module has also seen a major refactor to improve
efficiency and load times.

Sorry! This is the last "big" change before 2.1!
2018-06-18 02:34:16 +02:00
Henrik Lissner
ec8ae0bedc
Add :ui pretty-code & set-pretty-symbols! autodef
Along with defaults for C/C++, elm, elisp, js, typescript, web-mode, and
org-mode. Thanks to @ar1a for inspiration.
2018-06-16 19:32:25 +02:00
Henrik Lissner
4d017ae19e
Replace :yas-minor-mode with set-yas-minor-mode! 2018-06-15 18:03:50 +02:00
Henrik Lissner
c0251aacee
Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
Henrik Lissner
588359cc5f
Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
Henrik Lissner
9f0ebe42e8
Replace :electric with set-electric-rules!
And general refactor of the emacs/electric-indent module.

Also updates (set! :electric ...) references in various :lang modules
2018-06-15 13:32:07 +02:00
Henrik Lissner
98d2f1de3f
Add set-env! autodef; make :env obsolete 2018-06-15 03:42:01 +02:00
Henrik Lissner
d8b1e469bc
Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
fuxialexander
1d6d11e803 add meta doc 2018-06-07 01:12:03 +08:00
fuxialexander
732c2979c4 Naming convention and add docs; Avoid conflicting pyenv. 2018-06-07 01:08:49 +08:00
Edmund Miller
fada449bd4 Get rid of a stray + 2018-06-05 18:02:46 -05:00
Edmund Miller
686d102ee7 Add conda 2018-06-04 18:42:15 -05:00
Henrik Lissner
32a2a2b64d
General, minor refactor
+ Group hooks with add-hook!
+ Sharpquote elfeed call
+ Extract elfeed buffer detector into function and ensure idempotency of
  doom-real-buffer-functions
2018-06-03 15:51:59 +02:00
Henrik Lissner
ad5713cd78
add-hook 'nose-mode-hook #'evil-normalize-keymaps
Ensures nose-mode-map keybinds work in nose-mode.
2018-06-03 11:21:32 +02:00
Henrik Lissner
bcc01628a3
Remove anaconda-view-mode-map keybinds
It, with anaconda-view-mode, have been removed upstream.
2018-06-03 11:20:43 +02:00
Henrik Lissner
cb4b94cc12
Conditionally install anaconda-mode dependencies 2018-06-01 17:14:17 +02:00
Henrik Lissner
83db654058
Fix anaconda-mode loading late in python-mode #638
This would mean anaconda-mode's config wouldn't work until the second
opened python buffer (or invokation of python-mode).
2018-06-01 12:19:11 +02:00
Henrik Lissner
1f5dae9176
Merge evil-collection-anaconda into lang/python #628
This is the first step of removing evil-collection from Doom.
2018-05-31 13:59:21 +02:00
Henrik Lissner
c80baef05d
lang/python: minor refactor
company-anaconda is *not* being removed, it just autoloads itself, so we
don't need its def-package! block.
2018-05-31 11:31:32 +02:00
Henrik Lissner
568a6c7e2c
lang/python: remove defunct advice 2018-05-31 11:27:23 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
80adb9c1f6
General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
Henrik Lissner
fd16719324
lang/{python,ruby}: add doctor.el 2018-05-15 21:49:51 +02:00
Henrik Lissner
7eb0dd6340
lang/python: remove redundant pip-requirements config
The auto-mode-alist entry is already set up by
pip-requirements-autoloads.
2018-05-15 21:49:47 +02:00
Henrik Lissner
e421720996
lang/python: fix non-interactive command on gf 2018-03-23 15:18:52 -04:00
Henrik Lissner
738f39d21a
Change how shell env is injected #449
Changes the behavior of the :env setting to fetch the shell variables
immediately on call.
2018-03-02 19:55:05 -05:00
Henrik Lissner
a9cbfc7f4e
New :env setting for pulling shell envvars into MacOS sessions
:env lets you specify what environment variables exec-path-from-shell
should pull in from your shell environment at startup. As such, these
need to be defined at startup. :env is useless post-init.

May address #433
2018-03-01 01:03:03 -05:00
Henrik Lissner
4dbca5b21f
lang/python: kill anaconda processes after killing last python buffer 2018-01-31 05:33:26 -05:00
Henrik Lissner
ac825754c6
lang/python: move :lookup setting to anaconda-mode block 2018-01-24 03:16:36 -05:00
Henrik Lissner
12ac162276
lang/python: set :company-backend sooner #369
company-anaconda was added to company-backends too late, causing
code completion not to work in first-time python buffers.
2018-01-24 03:15:49 -05:00