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
1
vote
3 answers

why mode isn't enabled?

I've got an emacs configuration file whatever.el : (abbrev-mode +1) (provide 'whatever) and in my init.el : (require 'whatever) but when i start emacs, abbrev-mode isn't enabled. why ? thank you
jney
  • 1,862
  • 2
  • 17
  • 21
0
votes
1 answer

Bazaar: how put files from different locations in one repository?

I'm new to bazaar and would like to give it a try by storing my Emacs configuration files in one repository. These files consist of a .emacs file in my home directory (on unixish systems) and a couple of Emacs Lisp source files in…
pesche
  • 3,054
  • 4
  • 34
  • 35
0
votes
2 answers

Emacs frames that fit the desktop (on either laptop or external monitor)

I usually set .emacs to open frames (windows) that nearly fill the laptop desktop. When I boot the laptop with an external monitor hooked, I end up needing to enlarge the first and every subsequent emacs frame by hand. What do I write in my .emacs…
Calaf
  • 10,113
  • 15
  • 57
  • 120
0
votes
1 answer

is there something like buffer-numbering-mode?

I am looking for something like window-numbering but to changing among buffers, specifically for tabbar, but I think something generic may be used. Any idea?
david villa
  • 384
  • 4
  • 9
0
votes
1 answer

How to detect is xemacs was opened with no window system

there are portions of my .emacs file that I would like to behave differently depending if emacs was opened in a terminal (ie, emacs -nw) or in a window. How does one go about detecting this?
stein
  • 180
  • 7
0
votes
1 answer

.emacs file permissions?

Ok I have been using Aquamacs and want to do a bit of customizing. So I know that I have to create a .emacs file and add my changes in that file. So I created a text file and named it .emacs in my home directory but since it's .emacs it is hidden…
Gmenfan83
  • 2,487
  • 5
  • 30
  • 34
0
votes
2 answers

Emacs preview-latex

I use preview-latex for displaying LaTeX results in an Emacs window. I use preview-at-point to toggle back and forth between code and output. However if I am not on Latex code (by mistake, maybe I missed my intended line by one, or two) then…
BBSysDyn
  • 4,389
  • 8
  • 48
  • 63
0
votes
1 answer

Changing a custom set face to display with those settings in certian emacs mode (text-mode, LaTeX-mode, etc..)

I had a custom-set-faces that I had used in an emacs startup file that was especially for when I launched latex files but I'm in the process of merging and updating my .emacs file so I don't launch a seperate start-up process for the latex file. I…
J Spen
  • 2,614
  • 4
  • 26
  • 41
0
votes
2 answers

is my .emacs being ignored?

I have a very simple .emacs file in my home directory, I'm trying to get it to indent 3 spaces when I hit tab. instead I always get 2 spaces, which is the default behavior. It seems to completely ignore my .emacs file.... ? here is the contents of…
0
votes
1 answer

dap-server-path is nil when attempting to debug Python file in emacs with dap-mode?

I'm trying to run dap-python to debug a Python file, but I get the following error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) dap--create-session((:type "python" :cwd "/home/yelnat/Documents/programmin/python-test/" :request…
Yelnat
  • 13
  • 3
0
votes
1 answer

Emacs : initial window size

Possible Duplicate: Programmatically setting Emacs frame size The initial emacs window size depends on the number of columns and the font (family+size). I set those parameters in my .emacs using : (setq default-frame-alist '((font .…
fxbois
  • 806
  • 9
  • 21
0
votes
0 answers

Resize a window at 1 px emacs

I have managed to resize a window so that it is 3 characters wide but I need to make it 0 but still be able to edit it Current code: (window-resize nil (- (truncate (* 0.06 (frame-width))) (window-width)) t)
0
votes
1 answer

Using evil-leader with use-package: Error (use-package): evil-leader/:config: Invalid function: (global-evil-leader-mode)

I'm trying to add use-package to my init.el and I'm running into this error: Error (use-package): evil-leader/:config: Invalid function: (global-evil-leader-mode) Here's a stripped down init.el that produces that error (assumes evil and evil-leader…
0
votes
2 answers

emacs: mode hook is bypassed when mode is switched by hand

In my .emacs there is the following mode hooks: (defun my-html-mode-hook () (interactive) (setq tab-width 4 ;; this will make sure TABs are used instead of spaces indent-tabs-mode t) ) (defun my-javascript-mode-hook () …
emacs drives me nuts
  • 2,785
  • 13
  • 23
0
votes
2 answers

How to use HTMLIZE in a function and change the local buffer to HTMLIZE output buffer?

I'm six years into emacs and only just getting into the details. I have a hyrda in my init for browser activity, using engine-mode, browse-url, and browse-url-of-buffer. I've written a new function 'print-to-browser' that htmlizes the buffer and…
F. Certainly.
  • 181
  • 14