emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: edgar@openmail.cc
To: help-gnu-emacs@gnu.org
Cc: emacs-orgmode@gnu.org
Subject: Re: How to use Org with Python as an IDE?
Date: Sun, 05 Sep 2021 01:03:12 +0000	[thread overview]
Message-ID: <20210905010312.Horde.qSaJV-gSBfKINOKhvYgNygs@www.vfemail.net> (raw)
In-Reply-To: <20210904222927.Horde.V5i-mHEy0_Bp2GCg4pqgGgO@www.vfemail.net>

I am very sorry for wasting your precious time. This was very simple

1. Install (some are optional) python-language-server  
jedi-language-server bash-language-server python-pylint  
python-pydocstyle ccls python-pyls-black
2. Clone https://github.com/joaotavora/eglot
3. Add this to your .init.el or .emacs

(require 'package)
(package-initialize)

(defun load-eglot-company ()
   "Loads `eglot' and `company'"
   (eglot-ensure)
   (company-mode))
(add-hook 'python-mode-hook 'load-eglot-company)

(use-package eglot
   :after prog-mode
   :load-path "~/.emacs.d/plugins/eglot"
   :config
   (add-hook 'c-mode-hook 'load-eglot-company)
   (add-hook 'c++-mode-hook 'load-eglot-company)
   (add-hook 'c-mode-common-hook 'load-eglot-company))


I can't believe that I can now be in the 21st century. Thanks to all  
the developers and the free software community!
<p>Quoting <a  
href="mailto:edgar@openmail.cc">edgar@openmail.cc</a>:</p><blockquote  
type="cite" style="border-left:2px solid  
blue;margin-left:2px;padding-left:12px;">Is there a current way to  
have Python (not iPython, Jupyter, Anaconda, Conda...) IDE in  
Emacs?<br />
<br />
I sent the forwareded message to the Org (mode) list, because I am  
planning to use Org, but I am in a defeated state, and if I can get  
regular files with autocompletion, navigation and documentation, that  
would be great.<br />
<br />
Thanks!<br />
<br />
#+begin_src elisp<br />
  (org-version)<br />
#+end_src<br />
<br />
#+RESULTS:<br />
: 9.3.7<br />
<br />
#+begin_src elisp<br />
  (emacs-version)<br />
#+end_src<br />
<br />
#+RESULTS:<br />
: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27,  
cairo version 1.17.4)<br />
:&nbsp; of 2021-03-26<br />
<br />
| python-jedi&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 0.18.0-2 |<br />
| emacs-ctable&nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; 0.1.2-3 |<br />
| emacs-deferred&nbsp; &nbsp; &nbsp; |&nbsp; 0.5.1-2 |<br />
| emacs-epc&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; 0.1.1-4 |<br />
| python-epc&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; 0.0.5-3 |<br />
| python-black&nbsp; &nbsp; &nbsp; &nbsp; | 21.7b0-1 ||  
python-flake8-black |&nbsp; 0.2.2-1 |</blockquote><br /><br />



-------------------------------------------------
This free account was provided by VFEmail.net - report spam to abuse@vfemail.net
 
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  


  reply	other threads:[~2021-09-05  1:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-04 22:29 Fwd: How to use Org with Python as an IDE? edgar
2021-09-05  1:03 ` edgar [this message]
2021-09-06 22:20   ` Dr. Arne Babenhauserheide
2021-09-07  3:37     ` edgar
  -- strict thread matches above, loose matches on Subject: below --
2021-09-04  4:58 edgar

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=20210905010312.Horde.qSaJV-gSBfKINOKhvYgNygs@www.vfemail.net \
    --to=edgar@openmail.cc \
    --cc=emacs-orgmode@gnu.org \
    --cc=help-gnu-emacs@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).