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

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

Re: Modify text appearance (put spaces after commas just for display)


From: Alberto Luaces
Subject: Re: Modify text appearance (put spaces after commas just for display)
Date: Fri, 29 Sep 2017 15:59:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Eli Zaretskii writes:

>> From: Alberto Luaces <aluaces@udc.es>
>> Date: Tue, 26 Sep 2017 11:12:15 +0200
>> 
>> So, from the top of your head, what would be the less painful method to
>> change every comma to a comma+space, or at least change the color of the
>> commas to anything more distinguishable and attach it to the language
>> mode hook?
>
> Here's one more solution for you to consider, a much simpler one IMO:
>
>   (let ((table (or (window-display-table)
>                  buffer-display-table
>                  (make-display-table))))
>     (aset table ?, (vconcat ", "))
>     (setq buffer-display-table table))

Indeed very nice, thank you!

-- 
Alberto




reply via email to

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