unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: New config file
Date: Wed, 30 Sep 2009 01:26:15 -0500	[thread overview]
Message-ID: <87zl8d54oo.fsf@newsguy.com> (raw)
In-Reply-To: 874oql6jmr.fsf@newsguy.com

Harry Putnam <reader@newsguy.com> writes:

> emacsuser <mekhala.acharya@bms.com> 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





  reply	other threads:[~2009-09-30  6:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29 21:13 New config file emacsuser
2009-09-30  4:37 ` Wang Lei
2009-09-30  6:03 ` Kevin Rodgers
2009-09-30  6:18 ` Harry Putnam
2009-09-30  6:26   ` Harry Putnam [this message]
     [not found]   ` <mailman.7745.1254292011.2239.help-gnu-emacs@gnu.org>
2009-10-18  0:53     ` David Combs
2009-10-18  8:08       ` Tim X
     [not found] <mailman.7734.1254283138.2239.help-gnu-emacs@gnu.org>
2009-09-30  5:02 ` Richard Riley
2009-09-30 12:58   ` emacsuser
     [not found]   ` <mailman.7770.1254315520.2239.help-gnu-emacs@gnu.org>
2009-09-30 23:07     ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zl8d54oo.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).