[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Publishing (slightly) modified contents with Muse
From: |
Richard Riley |
Subject: |
Re: Publishing (slightly) modified contents with Muse |
Date: |
Thu, 23 Oct 2008 15:52:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:
> Hello,
>
> I've a question that puzzles me for quite a long time now. Maybe
> you can help me putting me on the right tracks...
>
> As I've taken and learned a lot from the Emacs community, I'd
> like to give something back, my turn, by publishing my init
> files. For the Emacs one, no problem. For the Gnus init file, it
> hurts: I don't want to see my email addresses becoming public...
>
> I'm planning to use Emacs Muse for the publishing -- good
> choice? sorry, that's another question! --, and I would like to
> have a solution for publishing my `.gnus' file, in particular,
> with some of its contents modified. I don't want to replace
> every of my email addresses by the unique `XXX' string, as I'm
> using several addresses, and it can be interesting to see the
> different addresses used in the `.gnus' file, with the use of
> personalities, and so.
>
> Though, for example, `sva@mydomain.com' could be replaced by
> `asv@adimmnoy.cmo' for example (letters have been sorted) --
> just a silly algorithm example. But, what's good, is that it
> somehow stays quite readable to follow what's being done in the
> config file.
>
> Questions:
>
> o how to do that best for publishing the contents of my
> `.gnus' file with Muse with such a markup:
>
> <include file="~/.gnus" markup="src" lang="emacs-lisp">
>
> o how to be able to have a link to a copy of the file, so
> that one does not have to copy/paste if he wanna use my
> config file?
>
> Many thanks in advance for all of your ideas,
> Seb
Maybe have defaults in the your .gnus file and override them later. If
its posting styles in particular :
At the end of your init file
(load "personal.el")
or something similar.
e.g I have use guns-posting styles and include an external file which
does something like:
,----
| ;; -*-no-byte-compile: t; -*-
|
| (add-to-list `gnus-posting-styles `(
| ,(rx(or "private-group"))
| (name "Real Name")
| (address "x@x.com")
| (from "x <x@x.com>")
| (x-face-file "~/.emacs.d/.xfaces/x.xface")
| (face (gnus-face-from-file "~/.emacs.d/.xfaces/x.jpg"))
| (eval (setq pgg-gpg-user-id nil))
| (signature-file nil)
| ) t )
|
| (provide 'personal)
`----
Note the "no byte compile" directive at the top. If you compile it then
your private data is easily seen in the elc file. So in *nix chmod the .el to
600 to keep prying eyes out. This appends so will overwrite your
(visible in init file) defaults.
Possibly this may work for you.