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 must log in or # to comment.
cheers, going to report it as a bug and hope it gets fixed soon