this post was submitted on 27 Oct 2023
1 points (100.0% liked)

Emacs

311 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

As the title says, when i run M-x ispell when it reaches a word under an org mode heading it won't unfold the heading, so my cursor is just on the actual heading and not the incorrect word and then when i quit ispell i can't unfold that heading with tab. I have to kill and yank the heading to get it working again. I pasted some of my init file below incase that helps.

  • I've tried this with flyspell disabled and get the same results, so i think it is an ispell issue.
  • I have also tried this with emacs -q and running M-x ispell and get the same issue.
  • I'm using emacs+ on mac

Thanks!

Org settings:

* Org mode
** General tweaks
#+begin_src emacs-lisp
  ;; indent with tabs for better readability
  (add-hook 'org-mode-hook #'org-indent-mode)
  ;; (setq org-indent-indentation-per-level 4)

  ;; them source blocks as they would in their native mode.
  (setq org-src-fontify-natively t
        org-src-tab-acts-natively t
        org-confirm-babel-evaluate nil)
#+end_src

** Packages
*** org-bullets
#+BEGIN_SRC emacs-lisp
  ;; Org bullets makes things look pretty
  (use-package org-bullets
    :ensure t
    :config
    (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
  #+END_SRC

ispell and flyspell settings:

** spell checking
*** ispell
#+begin_src emacs-lisp
  (use-package ispell
    :ensure t)

  (setq ispell-program-name "aspell")
  (setq ispell-extra-args '("--sug-mode=ultra"))
  (setq ispell-dictionary "english")
#+end_src

*** flyspell
#+begin_src emacs-lisp
  (use-package flyspell
    :ensure t
    :config
    (setq ispell-program-name "aspell")  ; Use Aspell as the spell checker
    (add-hook 'text-mode-hook 'flyspell-mode)
    (add-hook 'prog-mode-hook 'flyspell-prog-mode))

  ;; recommended to speed up flycheck
  (setq flyspell-issue-message-flag nil)

  ;; easy spell check
  (global-set-key (kbd "") 'ispell-word)
  (global-set-key (kbd "C-S-") 'flyspell-mode)
  (global-set-key (kbd "C-M-") 'flyspell-buffer)
  (global-set-key (kbd "C-") 'flyspell-check-previous-highlighted-word)
  (defun flyspell-check-next-highlighted-word ()
    "Custom function to spell check next highlighted word"
    (interactive)
    (flyspell-goto-next-error)
    (ispell-word)
    )
  (global-set-key (kbd "M-") 'flyspell-check-next-highlighted-word) 

you are viewing a single comment's thread
view the rest of the comments
[–] 00-11@alien.top 1 points 1 year ago (1 children)
[–] LostyPints@alien.top 1 points 1 year ago

cheers, going to report it as a bug and hope it gets fixed soon