Gnus development mailing list
 help / color / mirror / Atom feed
From: Richard Riley <rileyrg@googlemail.com>
To: ding@gnus.org
Subject: Re: Your way to quickstart Gnus?
Date: Mon, 15 Aug 2011 17:26:46 +0200	[thread overview]
Message-ID: <85fwl28zm1.fsf@news.eternal-september.org> (raw)
In-Reply-To: <8762lyk8kt.fsf@gmail.com>

XeCycle <xecycle@gmail.com> writes:

> Hello, I want to know if you have a way to start Gnus quickly when using
> emacsclient.
>
> I bind a key (in my WM) to execute `emacsclient -c -e '(gnus)'`, however
> the *Group* buffer appeared read-only before I press a key --- for
> example when I started it and press "Enter", Emacs will beep,
> complaining this buffer read-only, then everything is fine.  Another
> problem is that the splash image won't be shown.
>
> Well, these are all minor problems, but I'll be glad if I can solve it.
> What's your way?

not tested, but I use to use this:

,----
| (defun rgr/mailto (to)
|   "Send an email to 'to' but prompting for a posting style if not configured. Starts Gnus if not already running."
|   (unless gnus-active-hashtb (gnus)) ;; Better way??
|   (let ((gnus-newsgroup-name
| 	 (if gnus-default-mailto-group gnus-default-mailto-group (completing-read "Use posting style of group: "
| 										  gnus-active-hashtb nil
| 										  (gnus-read-active-file-p)))))
|     (compose-mail to)))
`----


and a shell script

,----
| mailto=$(printf '%s\n' "$1" | sed -e 's/[\"]/\\&/g')
| elisp_expr=$(printf '(rgr/mailto "%s")' "$mailto")
| 
| emacsclient --alternate-editor="" -c -n \
|         --eval "$elisp_expr" \
|         --eval '(set-window-dedicated-p (selected-window) t)'
`----

maybe it will help you get started if it doesnt work.






  reply	other threads:[~2011-08-15 15:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15 15:17 XeCycle
2011-08-15 15:26 ` Richard Riley [this message]
2011-08-16  6:20   ` XeCycle
2011-08-16  6:45 ` Tassilo Horn
2011-08-16 12:25   ` Eric Abrahamsen
2011-08-16 15:19     ` Wes Hardaker

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=85fwl28zm1.fsf@news.eternal-september.org \
    --to=rileyrg@googlemail.com \
    --cc=ding@gnus.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).