emacs-devel
[Top][All Lists]
Advanced

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

Re: parinfer-mode for Emacs might be neat for encouraging Lisp adoption


From: Marcin Borkowski
Subject: Re: parinfer-mode for Emacs might be neat for encouraging Lisp adoption
Date: Fri, 13 Nov 2015 16:58:31 +0100
User-agent: mu4e 0.9.15; emacs 25.0.50.1

On 2015-11-13, at 16:34, João Távora <address@hidden> wrote:

> Hi Oleh, Christopher, Marcin
>
> What do you think of this prototype?
>
>     (defun joaot/setup-some-parinfer-fanciness ()
>       (add-hook 'post-self-insert-hook 'joaot/reindent-up 'append 'local))
>
>     (add-hook 'lisp-mode-hook 'joaot/setup-some-parinfer-fanciness)
>
>     (defun joaot/reindent-up ()
>       (ignore-errors
>         (save-excursion
>           (backward-up-list) (indent-sexp))))

BTW, using this with idle timers would make it much smoother, I guess.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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