all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luis Felipe <luis.felipe.la@protonmail.com>
To: david larsson <david.larsson@selfhosted.xyz>
Cc: help guix <help-guix@gnu.org>,
	Help-Guix <help-guix-bounces+someone=selfhosted.xyz@gnu.org>
Subject: Re: What Python IDE are you using?
Date: Sun, 28 Aug 2022 18:03:08 +0000	[thread overview]
Message-ID: <-boEhUHpzjIrIMZC7cRBx3794gMRVkkJtQjbBahYh7-6EkN95CUhcxOgbd5ldLE7s9s-DMmE86iK87xuGCQ3X40f5Yi_dOcEQ-_8H9ipUE8=@protonmail.com> (raw)
In-Reply-To: <991c6823e02ee110a0187aab7448f581@selfhosted.xyz>


[-- Attachment #1.1: Type: text/plain, Size: 2539 bytes --]

Hi David,


On Thursday, August 25th, 2022 at 18:33, david larsson <david.larsson@selfhosted.xyz> wrote:

> I use emacs with plugins like jupyter, flake8, magit, and jedi that
> gives autocompletion for Python, including from org-mode files and
> org-src buffers - see attached screenshot. It works nicely so far.

Thanks. Actually, Emacs Elpy uses several common packages used to program Python in Emacs. It's just that it started failing for me a couple of months ago for different reasons so I thought it would be good to find a fallback editor.

However, I found out that there was something in my monolithic Emacs init.el causing autocompletion to fail. I haven't been able to pinpoint the configuration snippet that is causing the problem though. So I just ditched that init.el and started using different, short initialization files depending on the need, and now I can use Emacs Elpy again normaly.


> I have modified some emacs plugins a bit, and am currently working on
> refining things for a setup that gives nice auto-completion for Python,
> Javascript and Guile, which can be used from Emacs with a simple
> installation of a manifest, and maybe a home-configuration in the
> future.

Oh, yeah, I use Emacs launched from guix shell environments specific to my projects.


> I use a custom channel, waiting to also have related packages be refined
> enough to be submitted to guix master.
> 

> https://gitlab.com/methuselah-0/my-guix-packages
> 

> My current emacs config will almost certainly see some new commits be
> pushed to https://gitlab.com/methuselah-0/my-guix-packages in the
> following weeks.
> 

> Auto-completion, with code-signatures, jump-to-definition etc is working
> and possible, but not with a simple out-of-the-box installation from
> Guix yet. Though Im working on it :-)

I think it is already possible. As far as I know, Emacs Elpy enables those features: linting, autocompletion, function signatures displayed for the function at point, displaying function documentation, and jumping to definition, some refactoring, ...

My current Elpy configuration is just this:

;; Enable Elpy IDE.
;; https://elpy.readthedocs.io/
;;
(elpy-enable)
(setq elpy-rpc-python-command "python3")  ; Is this still needed?

;; Use Flycheck instead of Flymake
;; (Flymake makes Emacs unresponsive unpredictably).
;;
(when (load "flycheck" t t)
  (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
  (add-hook 'elpy-mode-hook 'flycheck-mode))


Cheers,

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

      parent reply	other threads:[~2022-08-28 18:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 22:29 What Python IDE are you using? Luis Felipe
2022-08-23  5:28 ` Dr. Arne Babenhauserheide
2022-08-23 16:49   ` Luis Felipe
2022-08-26 17:53   ` Maxim Cournoyer
2022-08-28 18:13     ` Luis Felipe
2022-08-23 11:34 ` Csepp
2022-08-23 16:52   ` Luis Felipe
2022-08-24 13:26     ` Luis Felipe
2022-08-25  7:57       ` Csepp
2022-08-25 13:01         ` Luis Felipe
2022-08-23 21:20 ` Fredrik Salomonsson
2022-08-23 23:39   ` Luis Felipe
2022-08-24  0:13     ` Luis Felipe
2022-08-24  1:09       ` Fredrik Salomonsson
2022-08-24 12:00         ` Luis Felipe
2022-08-25 18:33 ` david larsson
2022-08-25 18:43   ` david larsson
2022-08-28 18:03   ` Luis Felipe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='-boEhUHpzjIrIMZC7cRBx3794gMRVkkJtQjbBahYh7-6EkN95CUhcxOgbd5ldLE7s9s-DMmE86iK87xuGCQ3X40f5Yi_dOcEQ-_8H9ipUE8=@protonmail.com' \
    --to=luis.felipe.la@protonmail.com \
    --cc=david.larsson@selfhosted.xyz \
    --cc=help-guix-bounces+someone=selfhosted.xyz@gnu.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.