[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sml-mode indentation for structures
From: |
Stefan Monnier |
Subject: |
Re: sml-mode indentation for structures |
Date: |
Mon, 06 Oct 2014 09:59:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
>> (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.
Stefan