haskell / haskell/haskell-mode

Why rebind RET instead of using indent-line-function and allowing newline-and-indent to work?

Open
#1,705 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

I have a custom newline-and-indent for most modes, but for Haskell mode I have to first `(haskell-indentation-mode 0)` and then re-set my `indent-line-function`. Why not keep my RET binding and set normal `indent-line-function` for haskell indentation mode so that customisations to either the keybinding or that function don't get overridden?

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by tracing haskell-indentation-mode, especially where it binds RET and sets indent-line-function; compare those changes with the user's customizations. Done means the mode preserves the normal customization points while still providing Haskell indentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs-lisp, haskell
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.