[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clickable '-- ' with signatures menu
From: |
Michal Nazarewicz |
Subject: |
Re: Clickable '-- ' with signatures menu |
Date: |
Sat, 04 Aug 2007 02:09:14 +0200 |
User-agent: |
Gnus/0.7 Emacs/22.1.50.1 (Slckware Linux) |
> 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--