-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make haskell-font-lock-symbols-alist
into a customizable variable.
#713
Conversation
What does this pr do?
|
Arrow syntax uses the (&&&) operator, currently haskell-mode makes it look On Wed, Jun 10, 2015 at 11:16 PM, gracjan notifications@github.com wrote:
|
I'm interest is there a unicode substitution for |
I don't know, although with a quick search I was able to find the asterism ⁂ On Wed, Jun 10, 2015 at 11:27 PM, Артур Файзрахманов <
|
In this case we need to stop doing it. We have code that tries to prevent
&&& problems.
|
Oh, I didn't know there was something in the works for the (&&&) problem. I also pushed a replacement for (***), although I can put it in a separate PR if you want. |
There is also the upside down ampersand, ⅋, what do you think about that On Wed, Jun 10, 2015 at 11:41 PM, gracjan notifications@github.com wrote:
|
If it was up to me, I'd like for either just the ("&&&" . "&&&") hack or On Wed, Jun 10, 2015 at 11:48 PM, Aistis Raulinaitis sheganinans@gmail.com
|
@sheganinans I totally agree with your last comment, however I'm quite unfamiliar with arrows and can't be certain about |
@gracjan if I understood correctly, this is something like hack rather than actual solution. I have not looked at unicode stuff myself yet, so can you point the right place to be updated? Also I think we can keep this PR for better substitutions if offered changes are acceptable. |
Note that original problem that &&& got composed in half is a long fixed problem, specifically in the line https://github.com/haskell/haskell-mode/blob/master/haskell-font-lock.el#L136 and the issue #582. @sheganinans: it should be working ok for you without your hack. As about turning &&& and *** into something else: turn defconst haskell-font-lock-symbols-alist into defcustom and then people will be able to fix their own special cases. |
Oh! Lovely, good to know. Yes, I must have been using a rather old version of haskell-mode. Otherwise, maybe we might want to get some sort of collective say on what people might want with arrow syntax? Say, we could propose the ⅋ and ⁂ changes on /r/haskell and see if maybe we get a better suggestion? |
I have no Reddit account, but it will be good to know community opinion. |
I have one, I can post it if @gracjan gives the go ahead, he can obviously do it himself if he wants to. |
I remember that very long time ago this was discussed on haskell-cafe (mailing list). I do not remember there was an agreement. Still I would prefer that we do:
The reason is that &&& and *** replacements are pretty esoteric characters that may interact in a strange way with fonts, emacs rendering machinery, general layout and overall feeling needs to be proven. |
Alright, sounds good. I'd be satisfied with the defcustom proposal. I think it is a good balance between opening up the interface for people who want to add all sorts of unicode to their custom dsls and the people who would like to keep haskell-mode as vanilla as possible. |
@sheganinans: will you make a PR? |
sure |
Just a sec, I guess simply s/defconst/defcustom/ is not going to suffice. Reading the docs. |
Look in the builder:
|
Yup, I got the same error. I should build my files before I commit them. :) I'm still figuring out the customization system in emacs. |
Ok, I'm a little lost. I'm not sure exactly what the |
I know about as much as you. Are there other modes for emacs that customize similar functionality? |
I haven't done much emacs customization at all, so you know much more than me. |
This is good enough:
|
Never mind, it was the right thing, I was simply loading the old version of the files and not the ones i was editing. |
You may want some other :type, please change it to whatever interface you would prefer. |
haskell-font-lock-symbols-alist
into a customizable variable.
Make `haskell-font-lock-symbols-alist` into a customizable variable
This is good, thanks! |
Thanks! |
No description provided.