Closed keram closed 1 year ago
Closing in favour of added note to Readme file how to disable the hs-minor-mode https://github.com/idris-hackers/idris-mode#hideshow-minor-mode-hs-minor-mode In future we can revisit other options which do not require user intervention.
It is not unusual to have it enabled globally in Emacs with:
(add-hook 'prog-mode-hook 'hs-minor-mode)
But that leads to an error when trying to quit Idris as
*idris-proof-script*
mode also inherits fromprog-mode
.M-x idris-quit
It should be possible to disable the
hs-minor-mode
with:(add-hook 'idris-prover-script-mode-hook (lambda () (hs-minor-mode -1)))
but it does not seem to be working for theidris-prover-script-mode
Options to consider:
idris-prover-script-mode
to support Hideshow mode (not probable)idris-prover-script-mode
to other thanprog-mode
(maybe)prog-mode