Skip to content

Implement electric comma, semicolon, etc #1133

Closed
@gracjan

Description

@gracjan

haskell-indentation reacts to a couple of characters, most notably comma and semicolonbut also other chars.

Implement function that can be used in post-command-hook that will:

  • check if there is exactly one character on the line
  • check if there is only one indentation position returned from haskell-indentation-find-indentations
  • do the indentation if both are true
  • connect this function to ,; and )}]

More info:
http://www.gnu.org/software/emacs/manual/html_node/ccmode/Electric-Keys.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions