bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#70321: Can not turn completion-at-point on a per-mode basis on modes


From: Pedro Andres Aranda Gutierrez
Subject: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode
Date: Wed, 10 Apr 2024 09:08:08 +0200

Place the following file as init.el in a directory (e.g. ~/.demacs.d)

---cut here---
(setq inhibit-startup-screen t)

(defun auto-complete-text-off ()
  (message "Trying to turn off ispell completion...")
  (setopt text-mode-ispell-word-completion nil))

(add-hook 'org-mode-hook #'auto-complete-text-off)
(add-hook 'org-mode-hook #'(lambda()
                             (ispell-change-dictionary "en_GB")
                             (flyspell-mode t)))
---cut here---

Open a text file and C-h C-v completion-at-point-functions. You should see 
ispell-completion-at-point in the list of completion functions

Open a .org file and C-h C-v completion-at-point-functions. You see 
ispell-completion-at-point in the list of completion functions, when the expected behaviour
is that ispell-completion-at-point is *not* in the list. 

/PA
--
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet


reply via email to

[Prev in Thread] Current Thread [Next in Thread]