Gnus development mailing list
 help / color / mirror / Atom feed
From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Subject: Re: smileys auto smileys
Date: Wed, 01 Sep 2021 09:22:33 +0200	[thread overview]
Message-ID: <87zgsw2212.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <871r68bwk0.fsf@mat.ucm.es>

Uwe writes:

> I am not sure whether this is a gnus only question, but who do you
> display smiley(s) either in message mode, or in article mode when you
> display a message. 

I use the functionality built into Gnus:

,----[ C-h v smiley-style RET ]
| smiley-style is a variable defined in ‘smiley.el’.
| 
| Its value is ‘emoji’
| Original value was ‘low-color’
| 
|   You can customize this variable.
|   This variable was introduced, or its default value was changed, in
|   version 23.1 of Emacs.
|   Probably introduced at or before Emacs version 28.1.
| 
| Smiley style.
`----

> that works fine in message mode, but does not cover
> all smiley(s) and I am not sure how to configure it.

If you use gnus/smiley.el, you can configure this alist:

,----[ C-h v smiley-emoji-regexp-alist RET ]
| smiley-emoji-regexp-alist is a variable defined in ‘smiley.el’.
| 
| Its value is shown below.
| 
|   You can customize this variable.
|   This variable was introduced, or its default value was changed, in
|   version 28.1 of Emacs.
| 
| A list of regexps to map smilies to emoji.
| The elements are (REGEXP MATCH EMOJI), where MATCH is the submatch in
| regexp to replace with EMOJI.
| 
| Value:
| (("\\(;-)\\)\\W" 1 "😉")
|  ("[^;]\\(;)\\)\\W" 1 "😉")
|  ("\\(:-]\\)\\W" 1 "😬")
|  ("\\(8-)\\)\\W" 1 "🥴")
|  ("\\(:-|\\)\\W" 1 "😐")
|  ("\\(:-[/\\]\\)\\W" 1 "😕")
|  ("\\(:-(\\)\\W" 1 "😠")
|  ("\\(X-)\\)\\W" 1 "😵")
|  ("\\(:-{\\)\\W" 1 "😦")
|  ("\\(>:-)\\)\\W" 1 "😈")
|  ("\\(;-(\\)\\W" 1 "😢")
|  ("\\(:-D\\)\\W" 1 "😀")
|  ("\\(O:-)\\)\\W" 1 "😇")
|  ("\\(\\^?:-?)\\)\\W" 1 "🙂"))
`----


  Best regards,

    Adam

-- 
 "Super heroes wear snow pants?"                            Adam Sjøgren
 "When there's snow out, they do!"                     asjo@koldfront.dk



  reply	other threads:[~2021-09-01  7:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01  7:10 Uwe Brauer
2021-09-01  7:22 ` Adam Sjøgren [this message]
2021-09-01  8:53   ` Uwe Brauer
2021-09-01 14:13     ` Adam Sjøgren
2021-09-02  7:21       ` Uwe Brauer
2021-09-02  7:54         ` Adam Sjøgren
2021-09-02 12:25         ` Eric S Fraga
2021-09-02 14:06           ` Uwe Brauer
2021-09-02 14:17           ` Uwe Brauer
2021-09-02 14:42             ` Eric S Fraga
2021-09-02 14:52               ` Alberto Luaces
2021-09-03 15:36                 ` Eric S Fraga
2021-09-02 15:37               ` Uwe Brauer
2021-09-02 15:42                 ` Eric S Fraga
2021-09-02 17:03                   ` Uwe Brauer
2021-09-02 18:14                     ` Adam Sjøgren
2021-09-02 19:09                       ` Uwe Brauer
2021-09-02 19:38                       ` [MacOS even worse] (was: smileys auto smileys) Uwe Brauer
2021-09-02 20:49                         ` [PARTIALLY SOLVED] (was: [MacOS even worse]) Uwe Brauer
2021-09-02 14:49             ` smileys auto smileys Alberto Luaces
2021-09-02 19:10               ` Uwe Brauer
2021-09-15 15:52                 ` Robert Pluim

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

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

  git send-email \
    --in-reply-to=87zgsw2212.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=ding@gnus.org \
    /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.
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 NNTP newsgroup(s).