Skip to content

global-ts-fold-indicators-mode does not work #121

Open
@tomoya

Description

@tomoya

My emacs got an error due to updated ts-fold package a few days ago.

Debugger entered--Lisp error: (error "No language registered for major mode ‘fundamental...")
  error("No language registered for major mode `%s'" fundamental-mode)
  tree-sitter--setup()
  tree-sitter-mode()
  ts-fold-indicators-mode()
  ts-fold-mode(-1)
  ts-fold--tree-sitter-trigger()
  global-ts-fold-mode(1)
  global-ts-fold-indicators-mode(1)
  load-with-code-conversion("/Users/tomoya/.config/emacs/init.el" "/Users/tomoya/.config/emacs/init.el" t t)
  load("/Users/tomoya/.config/emacs/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x80e71dfb90107fa>) #f(compiled-function () #<bytecode 0xe1b30db824d45f1>) t)
  command-line()
  normal-top-level()

This error has occurred (global-ts-fold-indicators-mode 1) configuration.
When I tried changing it to (add-hook 'tree-sitter-after-on-hook #'ts-fold-indicators-mode), the error disappeared.

P.S.
ts-fold is a very nice package for me, Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions