`end-of-buffer` error when starting `org-fancy-priorities-mode`
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### What did you expect to happen?
I expected the following file to load successfully without error when opening it:
```
* Problem block
#+BEGIN_SRC sh
PROMPT_SYMBOL="\$"
PROMPT_SYMBOL="${RED}\$${COLOR_RESET}"
#+END_SRC
```
### What actually happened?
When I open the above file in doom emacs, I see this error `File mode specification error: (doom-hook-error org-mode-hook org-fancy-priorities-mode (end-of-buffer))`, and that source block is not formatted properly.
### Describe your attempts to resolve the issue
I think this might be an issue with Doom Emacs, but I'm not totally sure. I tried opening the file with the problematic source block using the following minimal configuration and could not reproduce the issue:
```el
(require 'package)
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")
("melpa-stable" . "http://stable.melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
(package-initialize)
(setq package-archive-priorities
'(("org" . 30)
("melpa-stable" . 20)
;("marmalade" . 10)
("gnu" . 10)
("melpa" . 5)))
(unless (package-installed-p 'use-package)
(message "** bootstrapping the installation of use-package")
(package-refresh-contents)
(package-install 'use-package)
(message "** successfully installed use-package"))
(use-package org
:mode (("\\.org$" . org-mode))
:ensure org-plus-contrib)
(use-package org-bullets
:ensure t
:hook
(org-mode . org-bullets-mode))
(use-package org-fancy-priorities
:ensure t
:hook
(org-mode . org-fancy-priorities-mode)
:config
(setq org-fancy-priorities-list '("⚡" "⬆" "⬇" "☕")))
```
### Steps to reproduce
Open the file above with the problematic source block in Doom Emacs when `+pretty` is specified for the `org` module.
### System Information
https://pastebin.com/TTnVvvRf
Contributor guide
Assessment
This issue has not been assessed yet.