From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Can I preload my ~/.emacs source for editing only?
Date: Tue, 04 May 2010 19:08:37 +0200 [thread overview]
Message-ID: <lzvdb38ui2.fsf@informatimago.com> (raw)
In-Reply-To: d396243d-ddcf-46b6-898f-c1c22a69d23e@a21g2000yqn.googlegroups.com
jpkotta <jpkotta@gmail.com> writes:
> On May 4, 5:07 am, p...@informatimago.com (Pascal J. Bourguignon)
> wrote:
>> Bill <bsag...@gmail.com> writes:
>> > When emacs is running I can C-x C-f to load my ~/.emacs source into a
>> > buffer for editing. That is easy enough, but I would like to know how
>> > to do it programmaticaly so it preloads on startup. Using (load "path-
>> > to-dot-emacs") makes emacs protest about redundant evaluation. This
>> > newbie just wants to edit, not evaluate.
>>
>> When you want to know what commande hides behind a keychoard, you can
>> use C-h k
>>
>> Type C-h k C-x C-f
>>
>> and see what command is used to find a file and edit it.
>>
>> You can then insert a form using this command in your ~/.emacs, such
>> as:
>>
>> (find-file "~/.emacs")
>>
>> The opposite of C-h k is C-h w which tells you where (to which
>> keychoards) a command is bound. For example, C-h w find-file RET
>> displays in the minibuffer:
>> find-file is on <open>, C-x C-f, <menu-bar> <file> <new-file>
>>
> The variable `user-init-file' always points to the user's init file,
> whatever it might be named. For example, I use ~/.emacs.d/init.el
> instead of ~/.emacs.
What's the point, if ~/.emacs.d still starts with a dot?
And if "~/.emacs" is mapped to the right file on all platforms by emacs?
(Otherwise, thanks for the hint, it would be good to use it in emacs
lisp libraries if need to access the init file occurs).
--
__Pascal Bourguignon__
http://www.informatimago.com
next prev parent reply other threads:[~2010-05-04 17:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 7:05 Can I preload my ~/.emacs source for editing only? Bill
2010-05-04 7:29 ` David Kastrup
2010-05-04 10:07 ` Pascal J. Bourguignon
2010-05-04 15:16 ` jpkotta
2010-05-04 17:08 ` Pascal J. Bourguignon [this message]
2010-05-05 20:08 ` jpkotta
2010-05-05 23:11 ` Steven Knight
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lzvdb38ui2.fsf@informatimago.com \
--to=pjb@informatimago.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.