Gnus development mailing list
 help / color / mirror / Atom feed
From: XeCycle <xecycle@gmail.com>
To: ding@gnus.org
Subject: Re: Your way to quickstart Gnus?
Date: Tue, 16 Aug 2011 14:20:47 +0800	[thread overview]
Message-ID: <874o1h98sg.fsf@gmail.com> (raw)
In-Reply-To: <85fwl28zm1.fsf@news.eternal-september.org>

Richard Riley <rileyrg@googlemail.com> writes:

> 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.

Thank you, but this is not exactly what I want --- I only need to start
Gnus up, looking at the *Group* buffer.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591




  reply	other threads:[~2011-08-16  6:20 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
2011-08-16  6:20   ` XeCycle [this message]
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=874o1h98sg.fsf@gmail.com \
    --to=xecycle@gmail.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).