From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9459 Path: news.gmane.org!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.gnus.user Subject: Re: Clickable '-- ' with signatures menu Date: Sat, 04 Aug 2007 02:09:14 +0200 Organization: tp.internet - http://www.tpi.pl/ Message-ID: <87sl70rwid.fsf@erwin.mina86.com> References: <87tzrgub0j.fsf@erwin.mina86.com> <87sl707i3n.fsf@azurservers.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186188057 5589 80.91.229.12 (4 Aug 2007 00:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2007 00:40:57 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Aug 04 02:40:55 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IH7hO-0007iG-9A for gegu-info-gnus-english@m.gmane.org; Sat, 04 Aug 2007 02:40:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IH7hL-0001jE-VB for gegu-info-gnus-english@m.gmane.org; Fri, 03 Aug 2007 20:40:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 37 Original-NNTP-Posting-Host: pai130.warszawa.sdi.tpnet.pl Original-X-Trace: nemesis.news.tpi.pl 1186186474 20232 217.96.228.130 (4 Aug 2007 00:14:34 GMT) Original-X-Complaints-To: usenet@tpi.pl Original-NNTP-Posting-Date: Sat, 4 Aug 2007 00:14:34 +0000 (UTC) X-Url: http://mina86.com/ User-Agent: Gnus/0.7 Emacs/22.1.50.1 (Slckware Linux) Cancel-Lock: sha1:dH0c2QbXI7dTUBeDG29RvW9CiEM= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79652 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9459 Archived-At: > Michal Nazarewicz 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 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 +-------ooO--(_)--Ooo--