unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode
@ 2024-04-10  7:08 Pedro Andres Aranda Gutierrez
  2024-04-10 13:41 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-04-10  7:08 UTC (permalink / raw)
  To: 70321

[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1656 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-12  7:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-10  7:08 bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode Pedro Andres Aranda Gutierrez
2024-04-10 13:41 ` Eli Zaretskii
2024-04-10 14:47   ` Pedro Andres Aranda Gutierrez
2024-04-11  5:52   ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-11  7:59     ` Pedro Andres Aranda Gutierrez
2024-04-12  7:36       ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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