Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Filenames like ".emacs"

14 Dec 2009   #1
ratsrcute

Win 7
 
 
Filenames like ".emacs"

This isn't really a "performance & maintenance" question but there isn't really a category on the forum for it. I am hoping someone here will be smart enough to know the answer.

A GNU (open-source) program called "Emacs" requires a file in the root of the C: drive named ".emacs". This worked fine on XP, but Win 7 is throwing a bunch of obstacles in my way to creating this file. Can someone explain how to create and/or rename a file to something like this?

Thanks,
Mike


My System SpecsSystem Spec
.
14 Dec 2009   #2
Dwarf

Windows 8.1 Pro RTM x64
 
 

Hi Mike and welcome to Windows 7 Forums

I've not heard of this program, but, nonetheless, I've downloaded, extracted and run it, and it has created a folder named .emacs.d in the C:\Users\Dwarf\AppData\Roaming\ directory. Inside this folder is another folder, auto-save-list.

Note that Dwarf is my username and that yours, of course, will be different.
My System SpecsSystem Spec
14 Dec 2009   #3
ratsrcute

Win 7
 
 

Quote   Quote: Originally Posted by Dwarf View Post
Hi Mike and welcome to Windows 7 Forums

I've not heard of this program, but, nonetheless, I've downloaded, extracted and run it, and it has created a folder named .emacs.d in the C:\Users\Dwarf\AppData\Roaming\ directory. Inside this folder is another folder, auto-save-list.

Note that Dwarf is my username and that yours, of course, will be different.
Hey, thanks a lot for the experiment. The auto-save-list and .emacs.d folders are different from the ".emacs" file, so that still leaves me with the question of how to create a file with a name like that (or if I'm even allowed to). (Your experiment may show that the .emacs file should go in c:\users\<name>\AppData rather than c:\.) Emacs will run fine without a .emacs, but you will lose the ability to customize the startup of the program, so your experiment may not have indicated anything about .emacs.

Thanks,
Mike
My System SpecsSystem Spec
.

14 Dec 2009   #4
Dwarf

Windows 8.1 Pro RTM x64
 
 

Hi Mike,

How do you create this .emacs file? If you give me an example, I'll see what I can do.
My System SpecsSystem Spec
14 Dec 2009   #5
ratsrcute

Win 7
 
 

Hi Dwarf,
Some Emacs experts told me that you create it by running emacs, then typing

Ctrl-x Ctrl-f
at the prompt type
~/.emacs<Enter>
then type anything, then save by
Ctrl-x Ctrl-s
and it should be created, probably in the AppData directory. I will try this myself tonight but I am away from my Win 7 laptop right now.

After you create it, because you probably won't create valid lisp syntax Emacs will give an error when you next start it, but that won't harm anything and is not a sign anything went wrong with the simple existence of this file.

They said it should work as long as you create it from emacs and save it using the filename as above. My problem was trying to create it from Notepad, I think. Also apparently C:\ is not the right location, even though on Win XP I used that location.

Thanks for your help,
Mike
My System SpecsSystem Spec
14 Dec 2009   #6
Dwarf

Windows 8.1 Pro RTM x64
 
 

Hi Mike,

Just tried what you said, and the file was created in the highlighted location (see image below).
Filenames like &quot;.emacs&quot;-capture.png


My System SpecsSystem Spec
14 Dec 2009   #7
ratsrcute

Win 7
 
 

Awesome! I'm sure it will work for me when I next get a chance.

Now, perhaps you can explore the wonders of Emacs the editor. Maybe you'll like it.
My System SpecsSystem Spec
15 Dec 2009   #8
Dwarf

Windows 8.1 Pro RTM x64
 
 

It does work. I firstly deleted the .emacs and the .emacs~ files to ensure that I was starting with a clean slate.
Filenames like &quot;.emacs&quot;-capture.png
I then selected Customize Startup.
Filenames like &quot;.emacs&quot;-capture1.png
Next, I toggled and saved the option Inhibit Startup Screen.
Filenames like &quot;.emacs&quot;-capture2.png
I then closed the application and restarted it.
Filenames like &quot;.emacs&quot;-capture3.png


My System SpecsSystem Spec
15 Dec 2009   #9
ratsrcute

Win 7
 
 

Thanks! You are a helpful guy! I still haven't been able to get to my Win 7 laptop to try it! I feel like I'm the cobbler and the elves are making shoes in the middle of the night. Very convenient.
My System SpecsSystem Spec
06 Oct 2010   #10
AgentWorm

Windows 7 Ultimate x64
 
 

Hello! It seems like you guys have solved the issue here, but I wanted to point out that GNU Emacs for Windows can accept the '.emacs' file as '_emacs'. As long as you have that file in your home directory:

Filenames like &quot;.emacs&quot;-emacs_home.png

and you have your HOME variable set in the Environment Variables:

Filenames like &quot;.emacs&quot;-environmentvariables.png

At this point it will load it up and you won't have to worry about having a file starting with a '.'

I hope this helps.


My System SpecsSystem Spec
Reply

 Filenames like ".emacs"




Thread Tools




Similar help and support threads
Thread Forum
"access denied" when using "assoc" and "ftype" from cmdline?
I tried to associate the file extension .txt to a new editor program with the well known cmdline programs ASSOC and FTYPE. No, assigning them through WinExplorer menu does not work. But this is another problem which should not discussed here. When I type now one of the following...
General Discussion
Kyboard deos not respond to the keys: "e", "d", "c" and "3"
Example sentence: vrytim I prss ths kys, nothing happns. Now I'm writing with my on-sreen keyboard. I'm clueless when it comes to computer stuff. How do I fix this? Is this a software problem, or a hardware problem?Help is much appreciated!
Hardware & Devices
Changing the "minimize" "maximize" and "close" buttons of a theme
Ok so I'm using a custom visual style made by another user however I don't really like the buttons used that I mentioned above. The creator states it is acceptable to change the theme to however you like as long as you don't redistribute it anywhere. Ok so I opened up the .msstyles file (using...
Customization
BSOD every few hours: mostly "STOP: 0x00000F4", "c00021a" & "c0000135"
Hi everyone! Yesterday my HP laptop (Windows 7) started getting BSOD with various types of errors (mostly "STOP: 0x00000F4", "STOP: 0x0000007A", "c00021a" and one "missing %hs, c0000135"). Most of the time it restarts without any issues and works fine right after the BSOD and then an hour or two...
BSOD Help and Support
Need to add "TASKBARS" (MSese for "Launchpads", "Docks" NOT "Toolbars"
My office just upgraded, and I can no longer use Windows XP. On this system, I was able to add a separate taskbar to facilitate quick access to commonly-browsed folder locations on our vast network, and another one expedited the launching of useful programs and lists. Each task on each taskbar...
General Discussion
Win7 truncates filenames with "." in it..
I've recently upgraded to Windows 7. My company uses files that have version numbering such as "Customer Filename v1.0.xlsx" In previous versions of Windows (Vista and XP), there's no problem with this. But with Windows 7, the filename keeps getting truncated to "Customer Filename v1", which means...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:26.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App