Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable auto-completion in org-mode? #8175

Closed
JaydenFish opened this issue Jan 15, 2017 · 4 comments
Closed

How to disable auto-completion in org-mode? #8175

JaydenFish opened this issue Jan 15, 2017 · 4 comments

Comments

@JaydenFish
Copy link

JaydenFish commented Jan 15, 2017

Description :octocat:

How to disable auto-completion in org-mode?
I put this into .emacs but it doesn't work:

(add-hook 'org-mode-hook (lambda ()
                           (spacemacs/toggle-auto-completion-off)
                           ))

Reproduction guide 🪲

  • Start Emacs
  • <>

Observed behaviour: 👀 💔
<>

Expected behaviour: ❤️ 😄
<>

System Info 💻

  • OS: windows-nt
  • Emacs: 25.1.1
  • Spacemacs: 0.200.5
  • Spacemacs branch: master (rev. 664ba6a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion better-defaults
                 (c-c++ :variables c-c++-default-mode-for-headers 'c++-mode c-c++-enable-clang-support t)
                 chinese cscope emacs-lisp helm html org
                 (python :variables python-enable-yapf-format-on-save t)
                 spacemacs-layouts syntax-checking ycmd)
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS

Backtrace 🐾

<<BACKTRACE IF RELEVANT>>
@bmag
Copy link
Collaborator

bmag commented Jan 15, 2017

On develop branch, you can replace auto-completion in your layers list with (auto-completion :disabled-for org spacemacs-org). I'm not sure if it works on master or not, but you can try.

If it doesn't work on master, try calling add-hook with an append argument:

(add-hook 'org-mode-hook (lambda () ...) 'append)

(the value for the last argument doesn't have to be append, any non-nil value will work)

@fosskers
Copy link
Contributor

As of recently, these solutions no longer work. Even with:

(auto-completion :disabled-for org spacemacs-org)
...
(setq helm-mode-no-completion-in-region-in-modes
        '(org-mode))

in my .spacemacs and spacemacs/toggle-auto-completion-off triggered, attempts to expand Org Mode Templates like <s fail. TAB is captured by a completion mechanism, and it suggests words to me instead of expanding to:

#+BEGIN_SRC

#+END_SRC

like it used to, until very recently.

@fosskers
Copy link
Contributor

Possibly related: emacs-helm/helm#673

@math0ne
Copy link

math0ne commented Dec 13, 2019

This is what worked for me:

(spacemacs|disable-company org-mode)

in:

dotspacemacs/user-init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants