2

I'm new to Emacs. How do I customize a setting?

This is actually a generic question inspired by the org-mode manual:

enter image description here

In this description, it says to (setq org-clock-persist 'history). Where should I set this?

I'm a new user to Emacs, and I'm starting with org-mode. If I need to set this in the .emacs file, I do not know how to locate it and do it.

Step by step guidance would be helpful.

3
  • 3
    Have a look at the manual nodes on the .emacs file and the customization interface to get started. I found these resources via web searches for "emacs .emacs" and "emacs customize". Commented Mar 2, 2016 at 14:06
  • 1
    The answer is available here. superuser.com/questions/73458/where-is-emacs-file. Somehow I have overlooked it. BTW, Why are emacs questions on superuser? Where should I ask emacs questions then? Commented Mar 3, 2016 at 2:09
  • 1
    @Prasanna this emacs stack exchange site did not exist when that question was asked. Now that there is a official emacs stack exchange site, all emacs related questions should be pointed here. Of course there are exceptions, but they are few in number. Commented Mar 3, 2016 at 15:34

2 Answers 2

2

So your .emacs file is usually in a couple of places, unless it has been set up in an odd way. Your .emacs.el file is by default in your home directory,or in a directory called .emacs.d. And your .emacs file should be called either .emacs.el or init.el. As for customizing things, simply paste the customization into your init file. But depending on the mode you're working in there is a feature called easy-customization that does a lot of this for you that you can get to from the menus or by calling with M-X. I hope that helps!

1

I just wanted to post this straight forward answer which I find will be more relevant.

In Windows(10):
C:\Users\$USERNAME\AppData\Roaming\.emacs
Here

  1. \AppData\Roaming are hidden folders, so type them in the address bar and Windows will show them to you as you type.
  2. $USERNAME is your username in your computer for your login.

In Ubuntu(Linux)
home\$USERNAME\.emacs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.