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
2
votes
1 answer

emacs can't find its things in its own load path

the following is output from a terminal session demonstrating that I, hopefully actually set this up right. ~ $cat .emacs (require 'package) (custom-set-variables ;;lots of comments generated by computer '(package-archives (quote(("gnu" .…
2
votes
1 answer

How to jump into the other window immediately when C-x 2/3 in Emacs

When I use C-x 2/3 to open a new window in Emacs, I usually want to do something in the other window, such as shell, open a buffer or visit a new file, but I always change into the other window manually. Is there a way(maybe defun a new function in…
CodyChan
  • 1,776
  • 22
  • 35
2
votes
3 answers

Open emacs with a horizontal split

When opening emacs with two files $ emacs a.txt b.txt, the window splits vertically. I need to have a horizontal split instead. Is there a variable that controls this behavior or is there a hook where I can override the one behavior without…
Raymond Hettinger
  • 216,523
  • 63
  • 388
  • 485
2
votes
2 answers

extending emacs search to other buffers

I am trying to improve the searching features of my emacs and allow it to search in other window (when multiple windows open), search the word i'm currently on and search on mouse click. I used this unit-at-cursor to create the following…
user2141046
  • 862
  • 2
  • 7
  • 21
2
votes
1 answer

Using a list of fonts with a daemonized Emacs

My GNU Emacs configuration is shared between multiple computers (including fixed installations for FreeBSD, Ubuntu, and Windows 7 and a portable installation with NT Emacs and Cygwin on a USB drive). I want to define a list of fonts that Emacs will…
Jordan Wade
  • 441
  • 2
  • 9
2
votes
1 answer

Emacs not recognising .emacs.d folder on startup

I'm new to Emacs. I recently got a dot-emacs configuration from GitHub. Cloned the repo in my home directory as .emacs.d This is for setting up a clojure environment. When i open Emacs and enter M-x nrepl-jack-in, the minibuf displays 'No…
2
votes
3 answers

aquamacs red cursor

The old, reliable (set-cursor-color "#aa88dd") in my .emacs file fails with Aquamacs, unless it is run after Aquamacs has launched. This type of failure is typical of Emacs doing something secretive during launch, but I can't figure out what. I…
infogizmo
  • 431
  • 4
  • 6
2
votes
1 answer

emacs delete-selection-mode disables itself

In my .emacs file I have (delete-selection-mode t) to enable the delete-selection-mode globally. Currently I'm working on a TeX file with AUXTeX, so it might be related to AUCTeX, but I don't know. At first, after visiting a file foo.tex everything…
Dror
  • 12,174
  • 21
  • 90
  • 160
2
votes
1 answer

How do I make an Emacs color theme that doesn't set a background color?

I am trying to make an Emacs color-theme for my terminal which sets colors for all the text and such, but uses the default background from the terminal- mainly because I like the transparency settings that my terminal profile has. Going into my…
Beej
  • 130
  • 10
2
votes
2 answers

Shift-selection and emacs 24

I use emacs 24 (OSX) and have a problem with shift-selection. If I select a region with my mouse, the text is highlighted and automaticaly saved on to the kill ring (I can yank it immediately). With shift-selection, the text is highlighted but I…
fxbois
  • 806
  • 9
  • 21
1
vote
3 answers

How can I save my Emacs settings?

I am using the Emacs editor, and every time I start Emacs, I lose my previous settings. For example, every time I have to type: M-x cua-mode RET M-x auto-complete-mode RET How can I save my settings in Emacs? Thanks.
hrishikeshp19
  • 8,838
  • 26
  • 78
  • 141
1
vote
1 answer

Customize GNU/Emacs nxml-mode indentation

As some of you who use GNU/Emacs to develop for Android, you are surely aware that the latest Android Tools introduces a new xml formatter. I use the excellent nxml-mode to edit xml since… I edit xml files ;) and I'm pretty happy with it BUT… as I…
Renaud
  • 8,783
  • 4
  • 32
  • 40
1
vote
1 answer

Size of Emacs frame on initial startup - want set to full height and half the width of the screen

I was trying to figure this out and I found the functions on how to set the pixels for a frame to start. I found this but appears to be for windows and couldn't get it working right: http://www.gnu.org/software/emacs/windows/old/faq4.html. May just…
J Spen
  • 2,614
  • 4
  • 26
  • 41
1
vote
2 answers

how to get windows version from emacs

how to get the detail version information of windows from emacs. i am try to invoke "ver" windows command to get version information, but got failed. (call-process "ver") C-x C-e Debugger entered--Lisp error: (file-error "Searching for program" "no…
luozengbin
  • 305
  • 2
  • 11
1
vote
1 answer

Make auto-complete and yasnippet modes work together to edit a specific file in GNU/Emacs

I use Emacs 24 from scratch with the latest yasnippet and auto-complete installed and nominally working. Now, as a emacs user and an android developer, I'd like to use my favorite editor and automate some tasks fr android development. I know almost…
Renaud
  • 8,783
  • 4
  • 32
  • 40