help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sml-mode indentation for structures


From: Helmut Eller
Subject: Re: sml-mode indentation for structures
Date: Mon, 06 Oct 2014 19:57:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

On Mon, Oct 06 2014, Stefan Monnier wrote:

>>> (add-function :around smie-indent-rules #'my-sml-rules)))
>> I only had to replace smie-indent-rules with
>> (symbol-function 'sml-smie-rules).
>
> Oh, sorry, it should have been `smie-rules-function'.
> Using (symbol-function 'sml-smie-rules) instead, ends up being more like
> the `defadvice' case: it modifies the behavior of sml-mode globally
> rather than only in the buffer where we run the code.

I see.  Actually I run the code with eval-after-load; but, yes, using
sml-mode-hook feels cleaner.

Helmut


reply via email to

[Prev in Thread] Current Thread [Next in Thread]