Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Michal Nazarewicz <mina86@tlen.pl>
To: info-gnus-english@gnu.org
Subject: Re: Clickable '-- ' with signatures menu
Date: Sat, 04 Aug 2007 02:09:14 +0200	[thread overview]
Message-ID: <87sl70rwid.fsf@erwin.mina86.com> (raw)
In-Reply-To: <87sl707i3n.fsf@azurservers.com>

> Michal Nazarewicz <mina86@tlen.pl> writes:
>> I've recently came up with an idea of making the signature separator
>> clickable in such a way that after clicking it (or pressing enter when
>> cursor is on it) a menu would pop-up with a list of signatures.  Then
>> I can choose one signature and the current one would be replaced with
>> the one I've chosen.

Slackrat <s4Qlackrat@azurservers.com> writes:
> Have you tried "randomsig.el" ??
>
> ;; see .emacs for complete randomsig.el
> ;; ####################################
>
> ;; TO MAKE IT WORK, put the following lines into your ~/.gnus:
>
>  (require 'randomsig)
>  (define-key message-mode-map (kbd "C-c s") 'randomsig-replace-sig)
>  (define-key message-mode-map (kbd "C-c S") 'randomsig-select-sig)
>  (require 'gnus-sum) ; probably required for `gnus-summary-save-map'
>  (define-key gnus-summary-save-map "-" 'gnus/randomsig-summary-read-sig)
>  (setq randomsig-dir "/home/inconnu/.signature/random-signature")
>  (setq randomsig-files '(
> "001" "002" "003" "004" "005" "006" "007" "008" "009" "010" "011"
>  "012" "013" "014" "015" "016" "017" "018" "019" "020"
[...]
> )
>  )

It works nice even though I'd prefer assigning each signature
a name so that when selecting a signature a menu would pop-up or I'd be
prompted for name in minibuffer.

-- 
Best regards,                                         _     _
 .o. | Liege of Serenly Enlightened Majesty of      o' \,=./ `o
 ..o | Computer Science,  Michal "mina86" Nazarewicz   (o o)
 ooo +--<mina86*tlen.pl>---<jid:mina86*chrome.pl>--ooO--(_)--Ooo--

  reply	other threads:[~2007-08-04  0:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 11:13 Michal Nazarewicz
2007-08-03 15:28 ` Slackrat
2007-08-04  0:09   ` Michal Nazarewicz [this message]
2007-08-04  0:17     ` Michal Nazarewicz
2007-08-03 15:32 ` Reiner Steib
2007-08-03 15:33 ` Slackrat
2007-08-03 23:58   ` Michal Nazarewicz

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=87sl70rwid.fsf@erwin.mina86.com \
    --to=mina86@tlen.pl \
    --cc=info-gnus-english@gnu.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).