Skip to main content

Questions tagged [python-mode]

Filter by
Sorted by
Tagged with
1 vote
1 answer
508 views

Why doesn't my emacs use lsp-pyright?

I've desperately been trying to use the lsp-pyright server, but Emacs doesn't seem to recognize that it's installed... What I did: Configured it like described in the docs: (use-package lsp-pyright :...
Markus Grunwald's user avatar
2 votes
2 answers
90 views

Org babel add extra "," after indent for no reason

Insert the following text in an org buffer with electric-indent-mode on. #+begin_src python s=''' #+1 #+1''' #+end_src add a newline to s, and the buffer will become: #+begin_src python s=''' ,#+...
godblessfq's user avatar
  • 1,299
0 votes
0 answers
61 views

Python-mode code navigation

How can I navigate from an abstract class/method to the implementations of that class/method? Using the M-. I can jump to function definition but I can't find a way to easily find the implementation.
Isky's user avatar
  • 101
0 votes
1 answer
101 views

Defining custom Python skeletons

I'm trying to define a custom Python skeleton and have found there are two macros in python.el that might be of use here. After poking around and looking at the value for python-skeleton-autoinsert it ...
slackline's user avatar
  • 367
0 votes
1 answer
110 views

How do I assign Ctrl-C Ctrl-D to menu Python/Debugger in my ~/.emacs file?

With a .py file open in my buffer, and the major mode being Python, there is a menu called Python. There is a item in it called Debugger. It has no associated keyboard shortcut. What is the lisp ...
MMM's user avatar
  • 115
0 votes
0 answers
61 views

outline-minor-mode works for Haskell but not Python

I can use outline-minor-mode to fold Haddock-style headings in Haskell code. For instance, consider the following file: -- (haskell-mode) -- (outline-minor-mode) -- (setq-local outline-regexp "-- ...
Jeffrey Benjamin Brown's user avatar
0 votes
0 answers
33 views

py-indent-or-complete, make hitting-tab in python mode move the cursor at first try

when I press tab in python mode py-indent-or-complete execute. When I'm at a new line, it takes two tab keys for the cursor to move to a position. I'd like to hit just one tab to do that. eg) Suppose ...
eugene's user avatar
  • 539