From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79651 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: Your way to quickstart Gnus? Date: Mon, 15 Aug 2011 17:26:46 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: <85fwl28zm1.fsf@news.eternal-september.org> References: <8762lyk8kt.fsf@gmail.com> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313421993 29965 80.91.229.12 (15 Aug 2011 15:26:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2011 15:26:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27945@lists.math.uh.edu Mon Aug 15 17:26:28 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qsz3b-00076E-VT for ding-account@gmane.org; Mon, 15 Aug 2011 17:26:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Qsz3V-0002JY-Qp; Mon, 15 Aug 2011 10:26:21 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Qsz3U-0002JF-FR for ding@lists.math.uh.edu; Mon, 15 Aug 2011 10:26:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Qsz3T-00050p-Bd for ding@lists.math.uh.edu; Mon, 15 Aug 2011 10:26:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qsz3R-0002DB-VI for ding@gnus.org; Mon, 15 Aug 2011 17:26:18 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qsz3P-0006wL-Ad for ding@gnus.org; Mon, 15 Aug 2011 17:26:15 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2011 17:26:15 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2011 17:26:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:jNQ17GLZFBUsKQymF06uEb/rl7Q= X-Spam-Score: -3.8 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79651 Archived-At: XeCycle 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.