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

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

bug#18730: [PATCH] tildify.el: Add `auto-tildify' and `auto-tildify-mode


From: Michal Nazarewicz
Subject: bug#18730: [PATCH] tildify.el: Add `auto-tildify' and `auto-tildify-mode'.
Date: Fri, 17 Oct 2014 10:44:18 +0200
User-agent: Notmuch/0.17+15~gb65ca8e (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu)

On Thu, Oct 16 2014, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Introduce a new variable that can be used by tildify-mode.  […]
>
> Please try to make it so that this new var can also be used for
> tildify-region, move the current default entry in tildify-pattern-alist
> to it (so that tildify-pattern-alist defaults to nil), and mark
> tildify-pattern-alist as obsolete.

I think those two need to be separate but the default for tildify-region
can be based on the one used by tildify-mode.  I.e. if tildify-mode uses
tildify-space-regex than the default for tildify-region would be

  (concat tildify-space-regex
          "\\(\\s-+\\)\\([ \t]*\n[ \t]*\\|[ \t]+\\)"
          "[\\w([{]")

> tildify-string-alist should also be made obsolete and replaced by
> a variable which is set buffer-locally by the major-modes.

So how would that work?  Would I have to also add setting of
tildify-string (or perhaps tildify-hard-space would be a better name)
variable in all major modes that tildify-string-alist now includes?  Or
add hooks in tildify?

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +--<mpn@google.com>--<xmpp:mina86@jabber.org>--ooO--(_)--Ooo--





reply via email to

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