Cursor disappears after completion in emacs

288 views Asked by At

I am trying to do some code blocks in emacs org-mode. What I am do is

  • press C-c C-, s
  • write sh :session. at this point i have
#+begin_src sh :session[cursor]
#+end_src              ^
  • than press Enter and got some selector in modeline, that looks like autocomplition
  • Once I make selection my cursor disapears and I have to reopen file to have it back

How can I prevent cursor from disappearing?

How can I debug what exactly happening when I press enter?

1

There are 1 answers

0
dinoallo On

Are you using ivy? If yes, this issue might be helpful to further dissect the problem. Also, completion in src-block doesn't work well if using helm or ivy.

Tl;Dr

set org-src-tab-acts-natively to nil with

(setq org-src-tab-acts-natively nil)

However, This will disable the completion.