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

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

bug#13975: 24.3; scheme-mode: Treat Greek letter `λ' as `lambda'


From: Leo Liu
Subject: bug#13975: 24.3; scheme-mode: Treat Greek letter `λ' as `lambda'
Date: Sat, 16 Mar 2013 21:12:04 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3)

On 2013-03-16 20:50 +0800, Simen Heggestøyl wrote:
>     (λ (x)
>       (* x x))

I check drracket and the default indentation is as the above. I think we
should teach emacs to do it too.

diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el
index a7dbc411..9dce5e6b 100644
--- a/lisp/progmodes/scheme.el
+++ b/lisp/progmodes/scheme.el
@@ -410,6 +410,7 @@ (put 'with-mode 'scheme-indent-function 1)
 (put 'make 'scheme-indent-function 1)
 (put 'style 'scheme-indent-function 1)
 (put 'root 'scheme-indent-function 1)
+(put 'λ 'scheme-indent-function 1)
 
 (defvar dsssl-font-lock-keywords
   (eval-when-compile





reply via email to

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