Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

discussion: emacs clojure-mode differences #36

Open

Description

@martinklepsch

Hey. I've been using Emacs for a while and I really like how it highlights things most notably:

  • The namespace section of symbols is colored
  • most functions are not colored in any special way
  • macros and special forms are colored consistently (i.e. fn, def(n), ns, case, cond, if-let ...)

I'm just dipping my toes in Atom but I'm liking it so far. Now I wonder if these changes would be something you're interested in and if so if you have any pointers how to achieve them :)

I can probably figure out the grammar bits but how do I know what ends up being colored in what way?

Activity

  1. martinklepsch commented on Jan 29, 2016

    @martinklepsch
    Author

    macros and special forms are colored consistently (i.e. fn, def(n), ns, case, cond, if-let ...)

    This could be achieved quite easily by changing this line to keyword.control.clojure.

    most functions are not colored in any special way

    I guess that's more a matter of the theme that's being used.

    The namespace section of symbols is colored

    This is possible for forms like (= ns/var 1) but not for function calls as (ns/var 1). In head position the symbol is not treated specially and is just registered as entity.name.function.clojure.


    I guess the solution to all of these points will be a mixture of extending themes and adjusting the grammer for more explicit namespaced-var parsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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