Questions tagged [dot-emacs]

.emacs (dot-emacs where the initial period causes problems) is the name of the main configuration file of the emacs text editor.

.emacs (dot-emacs when the initial period causes problems) is the name of the main configuration, initialization, and customization file of the GNU text editor. In absence of .emacs GNU Emacs version 23 and higher uses .emacs.d/init.el as initialization file.

The contents of the Emacs initialization file is read and execute by Emacs at startup, and changing it is the most common way of customizing an Emacs environment. The configuration and customization directives in the .emacs file frequently invoke further packages so that the main file doesn't become impractically long: these are conventionally stored in the .emacs.d directory. In addition to hand-editing the file, changes to it can be made with emacs' M-x customize facility.

See also:

218 questions
26
votes
7 answers

How can I show the Org-mode agenda on Emacs start-up?

I would like the Org-mode agenda to automatically show what I have to do today when I open Emacs. The org-agenda command is interactive, so it doesn't seem to work well for this purpose. Is there a way to show the Org-mode agenda on Emacs…
Conor
  • 1,509
  • 2
  • 20
  • 28
26
votes
4 answers

Don't show uninteresting files in Emacs completion window

How do I prevent Emacs from showing me all the files I'm not interested in (such as ~ backup files, .pyc files, or .orig files) when I: C-x C-f TAB ? It is working in one respect: if I know the file I want to open begins with foo and I type foo TAB…
emacsulike
  • 263
  • 3
  • 7
25
votes
5 answers

Sublime Text 2's "Goto Anything" (or instant search) for Emacs?

I tried out Sublime Text 2 recently, and I found Goto Anything superbly useful for navigating source code (Ctrl-P file@symbol seems to work really well). Is there something similar for Emacs? Preferably something that just works, without a ton of…
Vicky Chijwani
  • 10,191
  • 6
  • 56
  • 79
23
votes
3 answers

Some emacs desktop-save questions: how to change it to save in ~/.emacs.d/.emacs.desktop

I have this set in my init.el (desktop-save-mode 1) This works great, only I was wondering: how can I change it to save the .emacs.desktop files into ~/.emacs.d instead of ~/ how can I stop it from asking me if I want to save (only occurs the…
tobeannounced
  • 1,999
  • 1
  • 20
  • 30
22
votes
2 answers

Emacs auto-minor-mode based on extension

I found this question somewhat on the topic, but is there a way [in emacs] to set a minor mode (or a list thereof) based on extension? For example, it's pretty easy to find out that major modes can be manipulated like so (add-to-list…
Sean Allred
  • 3,558
  • 3
  • 32
  • 71
20
votes
6 answers

Where I can find the most popular Emacs settings?

While it is fun to customize, the Emacs has 100s of mode and there is lots of customization. I like to find popular choices, so it makes my life easier and I can spend time productively. It could be about hooks, registers, buffers,…
aartist
  • 3,145
  • 3
  • 33
  • 31
20
votes
3 answers

How do I profile my emacs configuration?

My emacs configuration takes a very long time to load. How can I easily find the offending parts and optimize them?
Phob
  • 891
  • 8
  • 13
20
votes
2 answers

Saving Window Configurations in Emacs

I'm wondering if there's a way to save window configurations across emacs sessions. I know desktop-save is fantastic for preserving buffers and whatnot and the emacs manual demonstrates storing a window configuration into a register but this…
dnolen
  • 18,496
  • 4
  • 62
  • 71
19
votes
1 answer

Java Coding Style & Emacs cc-mode configuration

I'm using GNU/Emacs HEAD with the included cc-mode (c-version 5.32.2) on a GNU/Linux Debian machine. I'm trying to define a custom style to manage the Code Conventions for the Java Programming Language, Android's Code Style Guidelines for…
Renaud
  • 8,783
  • 4
  • 32
  • 40
19
votes
4 answers

OSX Emacs: unbind just the right alt?

I'm using emacsformacosx.com and would like to stop the Meta_R (right meta, or right option key) on my Apple keyboard from being an Emacs meta key. The reason is that I want to be able to continue using the right option key as a character modifier…
markhellewell
  • 24,390
  • 1
  • 21
  • 21
19
votes
4 answers

.emacs Edit to Always Start Emacs in Terminal Mode?

I use emacs as my editor-of-choice, and since I'm doing a lot of work in a terminal I always run emacs as emacs -nw so that it runs in the terminal instead of in a window. I'd like to just run emacs and have it know that it should run in a…
templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065
18
votes
1 answer

In Lisp, Avoid "Cannot open load file" when using require

I am working on a custom .emacs file that I will be able to use on several different computers. I would like to be able to load a mode if it exists on the system. If it does not exist I would like Emacs to stop showing the error: File error: Cannot…
Jesse Vogt
  • 16,229
  • 16
  • 59
  • 72
16
votes
2 answers

Emacs: How can I eliminate whitespace-mode in auto-complete pop-ups?

Here is a screenshot of what is going wrong: As you can see, the whitespace characters are getting in the way of auto-complete's pop-up text and making things look really terrible. When really, I'd like it to look like this: Is there anyone out…
emish
  • 2,813
  • 5
  • 28
  • 34
15
votes
3 answers

Delete a word without adding it to the kill-ring in Emacs

When switching files using the minibuffer (C-x C-f), I often use M-Backspace to delete words in the path. Emacs automatically places what I delete into the kill ring. This can be annoying, as sometime I am moving to another file to paste something,…
drewrobb
  • 1,574
  • 10
  • 24
15
votes
6 answers

in Emacs, what's the best way for keyboard-escape-quit not destroy other windows?

EDIT: I understand there is keyboard-quit (which is normally bound to C-g); but I'm more interested to know about how one deals with editing functions that come with Emacs (like in this case). I run into this kind of situations from time to time…
polyglot
  • 9,945
  • 10
  • 49
  • 63
1
2
3
14 15