The pygn-mode works in my setup but does not provide any syntax highlighting when I edit PGN files. This is not a regression, I have been using pygn-mode for three years, and the syntax highlighting has never worked for me.
Emacs version:
GNU Emacs 28.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)
Package versions (MELPA):
pygn-mode-20230606.42
tree-sitter-20220212.1632
tree-sitter-langs-20230705.525
uci-mode-20210626.1956
nav-flash-20220726.1117
ivy-20230410.1815
The configuration provided by ~/.emacs.d/init.el
;; PyGN mode
(use-package pygn-mode
:ensure t
:bind (:map pygn-mode-map
("C-c C-n" . pygn-mode-next-game)
("C-c C-p" . pygn-mode-previous-game)
("M-f" . pygn-mode-next-move-follow-board)
("M-b" . pygn-mode-previous-move-follow-board)
("C-c SPC". pygn-mode-display-gui-board-at-pos)
("C-h $" . pygn-mode-describe-annotation-at-pos))
:hook (pygn-mode . visual-line-mode)
:custom
;; pygn-mode-pythonpath is not automatically updated after pygn-mode
;; package update. To workaround this issue I set the variable
;; here.
(pygn-mode-pythonpath
(concat (getenv "HOME")
"/.emacs.d/elpa/pygn-mode-"
(mapconcat 'number-to-string
(pkg-info-package-version 'pygn-mode) ".")
"/lib/python/site-packages/")))
Output of the pygn-mode-run-diagnostic command:
[x] Good. We can execute the pygn-mode-python-executable at 'python'
[x] Good. The pygn-mode-python-executable at 'python' is a Python 3 interpreter.
[x] Good. The pygn-mode-python-executable at 'python' is better than or equal to Python version 3.7.
[x] Good. The pygn-mode-python-executable at 'python' can import the Python chess library.
[x] Good. The pygn-mode-script-directory ('/home/gszasz/.emacs.d/elpa/pygn-mode-20230606.42/') is found and the server script is callable.
[x] Good. The `uci-mode' library is available.
[x] Good. The `nav-flash' library is available.
[x] Good. The `ivy' library is available.
------------------------------------
All pygn-mode required diagnostics completed successfully.
The
pygn-mode
works in my setup but does not provide any syntax highlighting when I edit PGN files. This is not a regression, I have been usingpygn-mode
for three years, and the syntax highlighting has never worked for me.Emacs version:
Package versions (MELPA):
The configuration provided by
~/.emacs.d/init.el
Output of the
pygn-mode-run-diagnostic
command: