From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Gmail with emacs Date: Wed, 21 Dec 2011 19:35:02 +0100 Message-ID: <87pqfh22p5.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1324492532 16440 80.91.229.12 (21 Dec 2011 18:35:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2011 18:35:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 19:35:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RdR0i-0002Ra-C9 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 19:35:28 +0100 Original-Received: from localhost ([::1]:58875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdR0h-0008Eg-Pd for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 13:35:27 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdR0Z-0008EL-Hm for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 13:35:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdR0Y-0002B2-MU for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 13:35:19 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:42017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdR0Y-0002Ap-HM for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 13:35:18 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RdR0W-0002JM-5X for help-gnu-emacs@gnu.org; Wed, 21 Dec 2011 19:35:16 +0100 Original-Received: from 91-67-11-43-dynip.superkabel.de ([91.67.11.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Dec 2011 19:35:16 +0100 Original-Received: from tassilo by 91-67-11-43-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Dec 2011 19:35:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-11-43-dynip.superkabel.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:4uHiFS5eRD/Umm5/EWeXmf9Bm7U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83237 Archived-At: "Steve Prud'Homme" writes: > Ok i try to configure my GNU Emacs to read gmail email. > I saw on a web site that i have to put these line : Better refer to the official docs than to some probably outdated website. > (add-to-list 'gnus-secondary-select-methods '(nnimap "gmail" > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl)) You don't need to specify port and stream. Gnus figures out the most secure method automatically. (add-to-list 'gnus-secondary-select-methods '(nnimap "Gmail" (nnimap-address "imap.gmail.com"))) > So I've put it in .emacs > Now I have this error > > Warning (initialization): An error occurred while loading > `/home/sprudhom/.emacs': > > Symbol's value as variable is void: gnus-secondary-select-methods That means, that Gnus is not loaded at the time when that code got executed, which is emacs startup time. So put it into ~/.gnus.el instead of ~/.emacs. Bye, Tassilo