unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Python code can't be indented automatically in the IPython console while working with comint-mime.
@ 2022-01-03  0:55 Hongyi Zhao
  0 siblings, 0 replies; only message in thread
From: Hongyi Zhao @ 2022-01-03  0:55 UTC (permalink / raw)
  To: help-gnu-emacs

On Ubuntu 20.04.3 LTS, I installed `comint-mime` with the following
configuration:

```emacs-lisp
(use-package comint-mime
  :straight ( :host github
          :repo "astoff/comint-mime"
          :files (:defaults "*.py" "*.sh"))
  ;;https://github.com/jwiegley/use-package#hooks
  ;;https://github.com/astoff/comint-mime#usage
  ;;https://mail.google.com/mail/u/0?ik=7b73d6af10&view=om&permmsgid=msg-a%3Ar-1233702610310931433
  ;;https://mail.google.com/mail/u/0?ik=7b73d6af10&view=om&permmsgid=msg-a%3Ar5550893479419332762
  :hook ((shell-mode inferior-python-mode) . comint-mime-setup)
  :custom
  ;;  https://emacs.stackexchange.com/a/33992
  ;;https://github.com/astoff/comint-mime/issues/4#issuecomment-938384059
  (org-format-latex-options '(plist-put org-format-latex-options :scale 1.5))
  )
```

When I type some python code in the IPython console with the major
mode `inferior-python-mode` enabled, I find that the Python code can't
be indented automatically, as shown below:

https://user-images.githubusercontent.com/11155854/147845816-ef422069-ec3a-4263-a64b-35eeaefdefba.png

Any hints for this problem?

Regards,
HZ



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-03  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-03  0:55 Python code can't be indented automatically in the IPython console while working with comint-mime Hongyi Zhao

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).