From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: New config file Date: Wed, 30 Sep 2009 01:18:04 -0500 Organization: Still searching... Message-ID: <874oql6jmr.fsf@newsguy.com> References: <25671046.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254291576 17328 80.91.229.12 (30 Sep 2009 06:19:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 06:19:36 +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 Sep 30 08:19:29 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MssXA-0003Xh-UV for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 08:19:29 +0200 Original-Received: from localhost ([127.0.0.1]:44805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MssXA-00044n-5t for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 02:19:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MssWU-00044i-ID for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:18:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MssWP-00044W-9n for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:18:45 -0400 Original-Received: from [199.232.76.173] (port=60815 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MssWO-00044T-Vo for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:18:41 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:10667) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MssWO-0003Eo-Fd for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:18:40 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MssWN-0000nO-Mp for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:18:39 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MssWI-0003Jr-CP for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 08:18:34 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Sep 2009 08:18:34 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Sep 2009 08:18:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:awA2kCxp1bgIxcynhcp3FnHgGCE= X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68555 Archived-At: emacsuser writes: > It loads an emacs session ((not with the default serttings of .emacs). But I > have to type M-x load file, then give .emacs-ks. Only then does the config > settings take effect. I wasn't to be able to call .emacs-ks without using > load file. Probably the simplist way would be to create an alias for emacs that runs emacs -q -l my.config (Or a function) The -q tells emacs not to load .emacs... and the -l tells emacs to load whatever filename follows. The alias route would look like this (in .bashrc) (assuming you are using bash as your shell) alias='myem emacs -q -l ~/my.conf' (Use any name (without spaces) that you want in place of `myem' and `my.conf'. I usually prefer functions... but either way if fine. A function would look like (in .bashrc.): myem () { emacs -q -l ~/my.conf; } Ditto about the names... but the spacing and format need to be exactly like that, including the semi-colon... the shell is fussy about functions.