Handmade Hero » Forums » Code » Emacs Configuration
Sabius
Saba Khutsishvili
2 posts
#3213 Emacs Configuration
2 years ago Edited by Saba Khutsishvili on April 3, 2015, 9:58 a.m.

I've recently started following the series at home and I've been thinking about installing emacs for a long time, so handmade hero inspired me to start using it. I am using Casey's '.emacs' file from source and I'm kinda getting used to it, but a lot of keystrokes are changed so I can't quite search for them. keystrokes I need are:
- Copy
- Cut
- Paste
- Move cursor at the end of file (Like C-A moves it to the start)
these are the ones that i really need :) also, if you write any other useful keystroke i will be thankful.

And another question: I open emacs from command prompt and it loads with '.emacs' file, but where should I put that config file(inside emacs folder), so that every time i open emacs, it will start with that configuration? Right now, when i open emacs from default folder emacs/bin/runemacs.exe it starts with default configuration.
cmuratori
Casey Muratori
799 posts
1 project

Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.

#3217 Emacs Configuration
2 years ago

There are two things you should look at for keyboard shortcuts: first is the file in the Handmade Hero "misc" directory that lists them, and the second is the tutorial video (https://forums.handmadehero.org/jace/videos/misc/basic_emacs.html). That explains copy/cut/paste. I don't have a key bound to "move cursor to end of file", though, IIRC. You'd have to bind one yourself.

For automatically having Emacs find your .emacs, you have two options. One is to make the shortcut to Emacs have the same commands as the emacs.bat file in it, and the other is to set your Windows environment variables to contain HOME and have that be the directory where the .emacs file resides.

- Casey
Connor_Rentz
Connor
53 posts

Naive

#3218 Emacs Configuration
2 years ago

Check out Casey's Basic Emacs Tutorial on the youtube archive. There is a link on the front page. Its the video right after day 21. He writes out all the commands he uses in his .emacs file. Hope this helps. Have a good one!

<C
Sabius
Saba Khutsishvili
2 posts
#3220 Emacs Configuration
2 years ago Edited by Saba Khutsishvili on April 4, 2015, 5:37 a.m.

Thank you very much, that's what I really needed to truly follow along :)

Cheers
Fred
20 posts
1 project

None

#4519 Emacs Configuration
1 year, 8 months ago Edited by Fred on Aug. 6, 2015, 5:24 p.m.

Hello,

my install of Emacs is definitely using Casey's .emacs file (all his shortcuts are active and it starts split horizontally in two windows), but how to have it start with the same "dark theme" that Casey is using (for me the background is white)?
I'm on Windows 7 (I tried emacs version 24.5 and 23.4, and have the same issue).

thanks

[edit] never mind, I had to install the font Casey is using.

None