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:26:15 -0500 Organization: Still searching... Message-ID: <87zl8d54oo.fsf@newsguy.com> References: <25671046.post@talk.nabble.com> <874oql6jmr.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254292084 18703 80.91.229.12 (30 Sep 2009 06:28:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 06:28:04 +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:27:57 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 1MssfI-0005ff-Ax for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 08:27:52 +0200 Original-Received: from localhost ([127.0.0.1]:50460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MssfH-0006rk-Lb for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 02:27:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsseH-0006af-Dx for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:26:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsseB-0006Yh-3E for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:26:47 -0400 Original-Received: from [199.232.76.173] (port=41268 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsseA-0006Yd-3C for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:26:42 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:11263) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Msse9-00041Y-84 for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:26:41 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msse8-0001O8-L1 for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 02:26:40 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Msse7-0005MT-4t for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 08:26:39 +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:26:39 +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:26:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 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:37sRaM43p5r5pnuFqfteOVM7ICw= 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:68557 Archived-At: Harry Putnam writes: > 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. I forgot to mention that with either of those you would need to source .bashrc after putting one of them in there. Like this . ~/.bashrc or source ~/.bashrc You could also just do emacs -q -l my.conf But if you are trying to get it simplified and don't want to type all that each time then an alias or function is the way to go