info-gnus-english
[Top][All Lists]
Advanced

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

TINY signature randomizer


From: Giacomo Boffi
Subject: TINY signature randomizer
Date: Thu, 20 Apr 2006 17:54:13 +0200
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b26 (linux)

;; At present, it works with a "~/.signature" file, where (possibly
;; multiline) stuff is separated by a line containing ONLY a "%"
;;
;; Change the filename in expand-file-name and the separator in
;; split-string below as you feel appropriate, and drop in your
;; "~/.gnus"
;;
(defun sig_rand ()
  (with-temp-buffer
    (insert-file-contents-literally (expand-file-name "~/.signature"))
    (let ((lista (split-string (buffer-string (current-buffer)) "\n%\n")))
      (elt lista (random (length lista))))))
(setq message-signature 'sig_rand)
-- 
sapete contare fino a venticinque?
Olimpia Milano Jugoplastika Split Partizan Beograd
Roberto Premier Duska Ivanovic Zarko Paspalj


reply via email to

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