From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: How to specify customized configuration file rather than "~/.emacs" ? Date: Thu, 13 Sep 2012 16:38:35 +0200 Message-ID: <20120913143835.GE32461@kuru.dyndns-at-home.com> References: <87oblaxb84.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347547147 28715 80.91.229.3 (13 Sep 2012 14:39:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 14:39:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 16:39:09 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCAZR-0003Kw-B3 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 16:39:09 +0200 Original-Received: from localhost ([::1]:59398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCAZN-00083c-M3 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 10:39:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCAZD-0007sx-1D for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 10:39:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCAZ1-0003Z6-S0 for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 10:38:54 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:61287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCAZ1-0003Yd-LR for help-gnu-emacs@gnu.org; Thu, 13 Sep 2012 10:38:43 -0400 Original-Received: by wibhn17 with SMTP id hn17so2891185wib.12 for ; Thu, 13 Sep 2012 07:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=4NvGDzrbkbxZ7+9tHPG/uxcAt6GVgjT2SMQH0uAiAtE=; b=H/+1yzQKTmEN5e4cry5DCuRiV7ihqHcWvQYU3mEafxSFtUEFVfIS4gKyXGJrT/8x7U v5KEPO61liqB0sI8YgTnYuXBsofgr5lK97mX78YLWtsERy4p+hr2e6kb7983iFZ7hhyi +cUQUT2VR4ZmsHR4BA5nXLJPgyfgbtGBTTRA/gB3kwdzrnggtHwbga3TkXRs8AiqcWqY KIcsu2XGFSWRT/Avo7ZH4CacJNHK9AkxW6kR77dxBYVwU7OsCWnP8UZ/+4cfaKRI8TSe mwPuaDgZh7abbHUl8uvrSsPj8Avx7gcberZgSXuqOHCRsfRtOb4TcC5T7QwOO1mUBCnR xqWQ== Original-Received: by 10.180.86.3 with SMTP id l3mr40923590wiz.16.1347547122072; Thu, 13 Sep 2012 07:38:42 -0700 (PDT) Original-Received: from kuru.dyndns-at-home.com (pb-d-128-141-52-158.cern.ch. [128.141.52.158]) by mx.google.com with ESMTPS id do5sm20837620wib.10.2012.09.13.07.38.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 07:38:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87oblaxb84.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2011-07-01) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 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:86747 Archived-At: On Thu, Sep 13, 2012 at 07:42:59PM +0530, Jambunathan K wrote: > Z C writes: > > > I just want emacs to load another file as the configuration file, and > > ignore the default file ("~/.emacs"). > > > > Note that I don't want to change the original "~/.emacs" file. > > > > I've tried to change "$HOME" env variable, but it doesn't work. > > > > Load emacs with custom options. > > ,---- > | $ emacs --help | grep load > | > | --no-desktop do not load a saved desktop > | --no-init-file, -q load neither ~/.emacs nor default.el > | --no-site-file do not load site-start.el > | --user, -u USER load ~USER/.emacs instead of your own > | --directory, -L DIR add DIR to variable load-path > | --load, -l FILE load Emacs Lisp FILE using the load function > `---- > To elaborate with an example: $ emacs -q -l ~/special-config.el or, $ emacs -Q -l ~/special-config.el -- Suvayu Open source is the future. It sets us free.