unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Christopher Allan Webber <cwebber@dustycloud.org>,
	Oleh Krehel <ohwoeowho@gmail.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: parinfer-mode for Emacs might be neat for encouraging Lisp adoption
Date: Fri, 13 Nov 2015 16:00:51 +0000	[thread overview]
Message-ID: <CALDnm50f1L7LyWNcfoNX0LVoiqM9KuNNjMt6P_pf7x92i4eH9Q@mail.gmail.com> (raw)
In-Reply-To: <87twopopr4.fsf@mbork.pl>

On Fri, Nov 13, 2015 at 3:58 PM, Marcin Borkowski <mbork@mbork.pl> wrote:
>
> On 2015-11-13, at 16:34, João Távora <joaotavora@gmail.com> 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	other threads:[~2015-11-13 16:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 23:30 parinfer-mode for Emacs might be neat for encouraging Lisp adoption Christopher Allan Webber
2015-11-12 12:45 ` Marcin Borkowski
2015-11-13 11:32   ` Oleh Krehel
2015-11-13 14:49     ` Marcin Borkowski
2015-11-13 15:34     ` João Távora
2015-11-13 15:57       ` Marcin Borkowski
2015-11-13 15:58       ` Marcin Borkowski
2015-11-13 16:00         ` João Távora [this message]
2015-11-20  2:37           ` Stefan Monnier
     [not found]     ` <CALDnm53TD9N6ZYhALP4ynVANAUpKJTWATNmL_FA80JrOpdBErQ@mail.gmail.com>
     [not found]       ` <877fll7w18.fsf@gmail.com>
2015-11-13 15:55         ` João Távora
2015-11-13 16:15           ` Oleh Krehel
2016-02-15 20:05 ` Christopher Allan Webber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALDnm50f1L7LyWNcfoNX0LVoiqM9KuNNjMt6P_pf7x92i4eH9Q@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=cwebber@dustycloud.org \
    --cc=emacs-devel@gnu.org \
    --cc=mbork@mbork.pl \
    --cc=ohwoeowho@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).