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: João Távora
Subject: Re: parinfer-mode for Emacs might be neat for encouraging Lisp adoption
Date: Fri, 13 Nov 2015 16:00:51 +0000

On Fri, Nov 13, 2015 at 3:58 PM, Marcin Borkowski <address@hidden> wrote:
>
> 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.

Probably. Also Oleh just pointed out that it's basically what
agressive-indent-mode (on MELPA, probably) already does...

-- 
João Távora



reply via email to

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