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

Carbon emacs problem

I installed Carbon EMACS tody but I have a problem with the shift key: I can't select region hoding down shift and moving with harrows. Do you have any suggestion? Best Riccardo
Ricca
1
vote
1 answer

When trying to use company-rust, company cannot find racer even when provided a correct path

I'm having some issues getting company-rust to work the way it should. It loads fine initially, then dies with this error when I attempt to actually use it: deferred error : (file-error "Searching for program" "no such file or directory" "racer")…
1
vote
1 answer

Slime to run right CCL

I have some PC boxes some 32 and some 64 bits. I keep a local svn repo of the CCL implementation on all of them and I have the same .bashrc and .emacs configurations on all boxes. Therefore when I like to use CCL from within Emacs through Slime I…
oakenshield1
  • 851
  • 1
  • 11
  • 26
1
vote
0 answers

Emacs HideShow and START marker inside a comment?

Need to work on lot of Vim-edited sources in Emacs, trying to mimic folding/hiding code between markers {{{ and }}}. Chosen HideShow mode installed by default with Emacs, with following configuration from .emacs: (add-to-list…
David Unric
  • 7,421
  • 1
  • 37
  • 65
1
vote
1 answer

Disable fill in xml-mode

I'm trying to configure Emacs to not activate Auto-Fill when editing an XML document. In my .emacs file, I add a hook so that text mode will have Auto-Fill on by default: (add-hook 'text-mode-hook 'turn-on-auto-fill) I have added a directory to my…
2mac
  • 1,609
  • 5
  • 20
  • 35
1
vote
1 answer

How set colors for a specific mode?

I'm trying Emacs. I would like to set colors for Eshell. I tried that first with set-foreground-color. But it affects my other modes too. (add-hook 'eshell-mode-hook (lambda ( default ((t (:foreground "#BD8700")))))) But that's not working…
ReneFroger
  • 484
  • 8
  • 20
1
vote
0 answers

epylint works from command line, but not in emacs

I just installed pylint from source, and can't get epylint to work when called from within emacs. It works fine when called from the command line. In my .emacs file, I've defined a 'pylint' function as follows: (defun pylint () (interactive) …
SuperElectric
  • 17,548
  • 10
  • 52
  • 69
1
vote
1 answer

How to customize emacs themes without editing the theme?

So I'm using this theme right now, and I want to customize it so that in orgmode levels 1-4 don't have larger :height's, but I don't want to edit the theme file. How do you do that?
Sam Mercier
  • 193
  • 1
  • 7
1
vote
1 answer

Custom diary-sunrise function not working. `autoload-diary`? (Emacs.)

Intro: Based on the existing code for Emacs' diary-sunrise-sunset, I attempted to create two new functions diary-sunrise and diary-sunset. My reasons for this are included below under the heading "XY-description". I have code below which seems to…
Brady Trainor
  • 2,026
  • 20
  • 18
1
vote
2 answers

Emacs 24.3 on OS X ansi-term no colors

I have Emacs 24.3 installed using homebrew (installed it with --cocoa and --srgb). Whenever I launch the emacs.app, and then launch ansi-term, it has no colors. However, when I do emacs -q and launch the app, ansi-term has colors. So I thought that…
Nico
  • 3,471
  • 2
  • 29
  • 40
1
vote
1 answer

How to make $ as an alias for a specific keyboard macro in emacs

Suppose that I have defined a macro in emacs (24.2), say xyz. I would like to associate the shortcut $ to this macro, i.e. to run the macro xyz whenever I type $. How I can do it? I tried all of the following without success: (global-set-key [$]…
Name
  • 339
  • 2
  • 18
1
vote
1 answer

Cannot open file cua in second instance of Emacs?

i get the following error when trying to open a second instance of emacs: File error: "Cannot open load file" , "cua" I guess I don't HAVE to open another instance of emacs (that is the beauty after all), I was just trying to keep some things…
trh178
  • 11,228
  • 5
  • 28
  • 37
1
vote
2 answers

Emacs/elisp: global-set-key bindings not taking effect for Meta- or -?

I am trying to bind M- and M- to scroll-down-line and scroll-up-line respectively as indicated here: https://stackoverflow.com/a/16229080/562139. This is what I have in my .emacs: ;; Key bindings (global-set-key (kbd "M-g") 'goto-line) ;;…
scorpiodawg
  • 5,612
  • 3
  • 42
  • 62
1
vote
4 answers

How do I get my cocoa emacs on Mac OS X to load my .emacs visual customizations for new windows (any document opened after the first)?

So I just downloaded emacs 23.1 for my new snow leopard macbook pro from http://emacsformacosx.com/ and it works like a charm, except... I have visual customizations in my .emacs, a few lines are extracted here: (set-background-color…
Neil Sarkar
  • 6,834
  • 8
  • 32
  • 30
1
vote
3 answers

What do I pass to the switch-to-buffer argument in my .emacs file?

I am getting an error in my .emacs file at the following line: (switch-to-buffer *Completions*) error: symbols value as variable is void I did a describe-function on switch-to-buffer and found I CAN pass it a BUFFER (and another optional argument…
trh178
  • 11,228
  • 5
  • 28
  • 37