all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* .emacs in the Windows version of Emacs
@ 2007-04-25  4:17 Cecil Westerhof
  2007-04-25  9:27 ` Peter Tury
  2007-04-25 14:35 ` Kai Grossjohann
  0 siblings, 2 replies; 13+ messages in thread
From: Cecil Westerhof @ 2007-04-25  4:17 UTC (permalink / raw)
  To: help-gnu-emacs

I am using Emacs for 1 1/2 week now. I like it enough to use it on my work
also. I downloaded the Windows version and put it on an USB-stick. (We only
have a 100 MB storage at our work. We work with ObjectView. This is a kind
of VisualBasic. I did find a mode-file for it, but I can not find a .emacs
or _emacs file to change. What do I need to do, to let the mode work?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25  4:17 .emacs in the Windows version of Emacs Cecil Westerhof
@ 2007-04-25  9:27 ` Peter Tury
  2007-04-25 10:33   ` Ismael Valladolid Torres
  2007-04-25 14:35 ` Kai Grossjohann
  1 sibling, 1 reply; 13+ messages in thread
From: Peter Tury @ 2007-04-25  9:27 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy...> writes:

> I did find a mode-file for it, but I can not find a .emacs
> or _emacs file to change. What do I need to do, to let the mode work?

Most probably you don't have .emacs file now. I think the best way you
can go is to create one. See the manual (C-h i): "58.6.4 How Emacs
Finds Your Init File" --> you should have a "home" env.variable in MS
Windows and put your .emacs there. Then try adding (load
"your-mode-file") to it...

(See also Chapter 58.6 The Init File, `~/.emacs')

I don't know how USB drive affects this. Have you searched this
newsgroup? As I remember there was some discussion about it a few
months ago??

\bye
P

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25  9:27 ` Peter Tury
@ 2007-04-25 10:33   ` Ismael Valladolid Torres
  2007-04-25 11:03     ` Lennart Borgman (gmail)
       [not found]     ` <mailman.2502.1177499413.7795.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: Ismael Valladolid Torres @ 2007-04-25 10:33 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Tury escribe:
> you should have a "home" env.variable in MS
> Windows and put your .emacs there.

I you don't have it Emacs will look for a C:\_emacs or a C:\.emacs.

Cordially, Ismael
-- 
Ismael Valladolid Torres  m. +34679156321
La media hostia           j. ivalladt@gmail.com

http://lamediahostia.blogspot.com/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25 10:33   ` Ismael Valladolid Torres
@ 2007-04-25 11:03     ` Lennart Borgman (gmail)
       [not found]     ` <mailman.2502.1177499413.7795.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 13+ messages in thread
From: Lennart Borgman (gmail) @ 2007-04-25 11:03 UTC (permalink / raw)
  To: Ismael Valladolid Torres; +Cc: help-gnu-emacs

Ismael Valladolid Torres wrote:
> Peter Tury escribe:
>> you should have a "home" env.variable in MS
>> Windows and put your .emacs there.
> 
> I you don't have it Emacs will look for a C:\_emacs or a C:\.emacs.

The now hopefully soon released Emacs 22 it is more well behaved and 
looks in the users Application Data directory if HOME is not set.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25  4:17 .emacs in the Windows version of Emacs Cecil Westerhof
  2007-04-25  9:27 ` Peter Tury
@ 2007-04-25 14:35 ` Kai Grossjohann
  1 sibling, 0 replies; 13+ messages in thread
From: Kai Grossjohann @ 2007-04-25 14:35 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

> [...] I can not find a .emacs or _emacs file to change. [...]

>From within Emacs, type C-x C-f ~/.emacs RET and you will be looking
at the right file.  Probably it is empty because it didn't exist.

Yes, this also works on Windows.

Kai

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
       [not found]     ` <mailman.2502.1177499413.7795.help-gnu-emacs@gnu.org>
@ 2007-04-25 19:35       ` Cecil Westerhof
  2007-04-25 20:16         ` Chris McMahan
                           ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Cecil Westerhof @ 2007-04-25 19:35 UTC (permalink / raw)
  To: help-gnu-emacs

Lennart Borgman (gmail) wrote:

> Ismael Valladolid Torres wrote:
>> Peter Tury escribe:
>>> you should have a "home" env.variable in MS
>>> Windows and put your .emacs there.
>> 
>> I you don't have it Emacs will look for a C:\_emacs or a C:\.emacs.
> 
> The now hopefully soon released Emacs 22 it is more well behaved and
> looks in the users Application Data directory if HOME is not set.

It is Emacs 22. I could take it of from my usb-stick and put it in C
\temp\emacs. (Temp is never cleared -why call it temp then?- so that
works.) But Emacs wants to write to C:\.emacs and that is not allowed. I
but something in C:\temp\emacs and load it with load-library. Not perfect,
but it will not get better I am afraid.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25 19:35       ` Cecil Westerhof
@ 2007-04-25 20:16         ` Chris McMahan
  2007-04-25 21:17           ` Lennart Borgman (gmail)
  2007-04-25 21:08         ` Eli Zaretskii
       [not found]         ` <mailman.2529.1177535710.7795.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 13+ messages in thread
From: Chris McMahan @ 2007-04-25 20:16 UTC (permalink / raw)
  To: help-gnu-emacs

Is it possible to set your home directory to the thumbdrive so emacs
will look there for the init file?

- Chris

Cecil Westerhof <dummy@dummy.nl> writes:

> Lennart Borgman (gmail) wrote:
>
>> Ismael Valladolid Torres wrote:
>>> Peter Tury escribe:
>>>> you should have a "home" env.variable in MS
>>>> Windows and put your .emacs there.
>>> 
>>> I you don't have it Emacs will look for a C:\_emacs or a C:\.emacs.
>> 
>> The now hopefully soon released Emacs 22 it is more well behaved and
>> looks in the users Application Data directory if HOME is not set.
>
> It is Emacs 22. I could take it of from my usb-stick and put it in C
> \temp\emacs. (Temp is never cleared -why call it temp then?- so that
> works.) But Emacs wants to write to C:\.emacs and that is not allowed. I
> but something in C:\temp\emacs and load it with load-library. Not perfect,
> but it will not get better I am afraid.
>

-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | first_initiallastname@one.dot.net
  =================================================

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25 19:35       ` Cecil Westerhof
  2007-04-25 20:16         ` Chris McMahan
@ 2007-04-25 21:08         ` Eli Zaretskii
       [not found]         ` <mailman.2529.1177535710.7795.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2007-04-25 21:08 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Cecil Westerhof <dummy@dummy.nl>
> Date: Wed, 25 Apr 2007 21:35:05 +0200
> 
> It is Emacs 22. I could take it of from my usb-stick and put it in C
> \temp\emacs. (Temp is never cleared -why call it temp then?- so that
> works.) But Emacs wants to write to C:\.emacs and that is not allowed. I
> but something in C:\temp\emacs and load it with load-library. Not perfect,
> but it will not get better I am afraid.

Why can't you have an autorun file on the stick that sets HOME to
point to the stick drive?  Then you could have your .emacs on the
stick as well.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25 20:16         ` Chris McMahan
@ 2007-04-25 21:17           ` Lennart Borgman (gmail)
  2007-04-26  7:28             ` Kai Grossjohann
  0 siblings, 1 reply; 13+ messages in thread
From: Lennart Borgman (gmail) @ 2007-04-25 21:17 UTC (permalink / raw)
  Cc: help-gnu-emacs

Chris McMahan wrote:
> Is it possible to set your home directory to the thumbdrive so emacs
> will look there for the init file?

I am not quite sure, but it looks to me from the docs that you can do 
this on MS Windows (but not other systems) by setting the environmental 
variable HOME.

Be aware though that other programs may use HOME too.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
       [not found]         ` <mailman.2529.1177535710.7795.help-gnu-emacs@gnu.org>
@ 2007-04-26  7:22           ` Cecil Westerhof
  2007-04-26 11:25             ` Peter Tury
  0 siblings, 1 reply; 13+ messages in thread
From: Cecil Westerhof @ 2007-04-26  7:22 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii wrote:

>> From: Cecil Westerhof <dummy@dummy.nl>
>> Date: Wed, 25 Apr 2007 21:35:05 +0200
>> 
>> It is Emacs 22. I could take it of from my usb-stick and put it in C
>> \temp\emacs. (Temp is never cleared -why call it temp then?- so that
>> works.) But Emacs wants to write to C:\.emacs and that is not allowed. I
>> but something in C:\temp\emacs and load it with load-library. Not
>> perfect, but it will not get better I am afraid.
> 
> Why can't you have an autorun file on the stick that sets HOME to
> point to the stick drive?  Then you could have your .emacs on the
> stick as well.

I prefer not to use an USB-stick for this. I did this only because I had no
room on the system. I can use C:\temp, so I put everything there. In the
morning I just give load-library.
Thanks anyway.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-25 21:17           ` Lennart Borgman (gmail)
@ 2007-04-26  7:28             ` Kai Grossjohann
  0 siblings, 0 replies; 13+ messages in thread
From: Kai Grossjohann @ 2007-04-26  7:28 UTC (permalink / raw)
  To: help-gnu-emacs

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Chris McMahan wrote:
>> Is it possible to set your home directory to the thumbdrive so emacs
>> will look there for the init file?
>
> I am not quite sure, but it looks to me from the docs that you can do
> this on MS Windows (but not other systems) by setting the
> environmental variable HOME.

Setting $HOME works on Unix, too.

Kai

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-26  7:22           ` Cecil Westerhof
@ 2007-04-26 11:25             ` Peter Tury
  2007-05-03 19:22               ` Cecil Westerhof
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Tury @ 2007-04-26 11:25 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <dummy@dummy.nl> writes:

> Eli Zaretskii wrote:
>
>>> From: Cecil Westerhof <dummy@dummy.nl>
>>> Date: Wed, 25 Apr 2007 21:35:05 +0200
>>> 
>>> It is Emacs 22. I could take it of from my usb-stick and put it in C
>>> \temp\emacs. (Temp is never cleared -why call it temp then?- so that
>>> works.) But Emacs wants to write to C:\.emacs and that is not allowed. I
>>> but something in C:\temp\emacs and load it with load-library. Not
>>> perfect, but it will not get better I am afraid.
>> 
>> Why can't you have an autorun file on the stick that sets HOME to
>> point to the stick drive?  Then you could have your .emacs on the
>> stick as well.
>
> I prefer not to use an USB-stick for this. I did this only because I had no
> room on the system. I can use C:\temp, so I put everything there. In the
> morning I just give load-library.
> Thanks anyway.

How do you start Emacs? Do you use --load="c:\temp\emacs\dotemacs"?
Maybe you can (and want?) to combine it with --no-init-file or
--quick? See Emacs Invocation in the manual.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: .emacs in the Windows version of Emacs
  2007-04-26 11:25             ` Peter Tury
@ 2007-05-03 19:22               ` Cecil Westerhof
  0 siblings, 0 replies; 13+ messages in thread
From: Cecil Westerhof @ 2007-05-03 19:22 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Tury wrote:
> How do you start Emacs? Do you use --load="c:\temp\emacs\dotemacs"?

That does the trick. Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-05-03 19:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25  4:17 .emacs in the Windows version of Emacs Cecil Westerhof
2007-04-25  9:27 ` Peter Tury
2007-04-25 10:33   ` Ismael Valladolid Torres
2007-04-25 11:03     ` Lennart Borgman (gmail)
     [not found]     ` <mailman.2502.1177499413.7795.help-gnu-emacs@gnu.org>
2007-04-25 19:35       ` Cecil Westerhof
2007-04-25 20:16         ` Chris McMahan
2007-04-25 21:17           ` Lennart Borgman (gmail)
2007-04-26  7:28             ` Kai Grossjohann
2007-04-25 21:08         ` Eli Zaretskii
     [not found]         ` <mailman.2529.1177535710.7795.help-gnu-emacs@gnu.org>
2007-04-26  7:22           ` Cecil Westerhof
2007-04-26 11:25             ` Peter Tury
2007-05-03 19:22               ` Cecil Westerhof
2007-04-25 14:35 ` Kai Grossjohann

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.