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

Backward kill in R session in emacs

I have one more question about customizing emacs for use with an R session. I like to use the backward kill function, but this deletes the command prompt in the R session. I have tried modifying the function ;; Kill to the start of the command line…
Charlie
  • 2,801
  • 3
  • 26
  • 27
1
vote
1 answer

Changing the home key behavior in an R session in emacs

I would like to change the behavior of the home key within an R session run from emacs. When I press the home key, it takes me all the way to the > prompt. I'd like the home key to take me to the start of the command entry (i.e., two points in from…
Charlie
  • 2,801
  • 3
  • 26
  • 27
1
vote
0 answers

How can I get flyspell to ignore TeX codes in MathJax?

So, in emacs auctex mode, it is easy to have flyspell ignore TeX math codes by adding a couple of lines to one's .emacs (or other initialization) file. At the moment I'm working on a long HTML document that contains a ton of embedded TeX code, which…
1
vote
0 answers

Custom 4-space indentation in the ./emacs.d/init.ls file is performed with 8 spaces

I wanted to configure my emacs settings, so as it is said in emacsWIKI I edited .emacs.d/init.el (the file didn't exist so I created a new one). In the file I wrote: (setq tab-width 4) ;; For changing identation to four spaces. (defvaralias…
user14782088
1
vote
1 answer

Deleted /.emacs.d/ and now Emacs won't work properly. How do I recreate/reset Emacs .emacs-folder?

I've been trying to get Emacs and Clojure to work for the last couple of hours but dammit if it doesn't want to work at all. So, in my blind rage I figured I should delete the .emacs.d/-folder with all the content. And since I'm using OS X I can't…
Sondre Nilsen
  • 296
  • 3
  • 11
1
vote
1 answer

Org Capture: prompt for information when determining the target file

I'm looking to build a capture template that, when run, prompts the user for more information to determine the path of the target file. I have a few pieces already. A function which asks the user for data and returns a string: (defun…
John Hamelink
  • 1,036
  • 2
  • 15
  • 33
1
vote
1 answer

Emacs loading user configuration file after su to root

On my ArchLinux number cruncher I have two accounts: A user account (benj) and the root account. For administrative tasks I ssh into the machine using my user account. With the shell open, I switch to root using su . Running emacs now shows an error…
Benj
  • 889
  • 1
  • 14
  • 31
1
vote
1 answer

Emacs Scrollbar Slider Doesn't Go to the Bottom

In this great Emacs-fu post on scrolling in Emacs, my very question is mentioned but never solved. Here's a quote: Note that on X, when the cursor (point) reaches the end of the document, the slider on the scroll bar may not be at the bottom; I…
Alan Turing
  • 12,223
  • 16
  • 74
  • 116
1
vote
1 answer

Setting consecutive new frames at a specific width from the previous frame in Emacs

I have the following in my init.el (if (display-graphic-p) (progn (setq initial-frame-alist '((tool-bar-lines . 0) (width . 106) ; chars (height . 60) ; lines (left . 50) …
user9652688
1
vote
1 answer

Emacs Rinari won't load at startup

Hey, I wanted to try out some rails. And since I don't want to use any fancy IDE. I thought I could try rails out using emacs with Rinari. Anyway I got some problem which I couldn't find any solution on google for it. Basically I have a clean .emacs…
starcorn
  • 8,261
  • 23
  • 83
  • 124
1
vote
2 answers

emacs nxhtml-mode[No match]

I am having some problems with nxhtml installation, I want my .php files to look better and I don't wanna go back to netbeans... I have downloaded nxhtml and I created a folder called 'emacs-packages' where my .emacs is I added this line in my…
rabidmachine9
  • 7,775
  • 11
  • 46
  • 59
1
vote
2 answers

Emacs elscreen - how do I jump to numbered tabs

Elscreen has a method called elscreen-jump and also elscreen-jump-0 and elscreen-jump-9. I'd like to be able to jump to tabs between 0 and 9. How do I define a keymap for this? I've tried: (global-set-key (kbd "M-1") (lambda () (interactive)…
MDCore
  • 17,583
  • 8
  • 43
  • 48
1
vote
1 answer

emacs buffer bind to key

I don't know why but currently emacs opens only one copy of w3m. If w3m is already open then retyping the command to open w3m takes me to the already opened buffer. I would like to configure ansi-term similarly i.e. typing C-x C-a (command open…
Kabira K
  • 1,916
  • 2
  • 22
  • 38
1
vote
4 answers

Why would W32 Emacs insert "/Application Data/Application Data/" into a filepath starting with ~/ when I use C-x C-f?

I just installed Emacs Speaks Statistics, which is when this error started showing up. Uninstalling hasn't fixed it. When I use C-x C-f, I can navigate normally, but when I actually press enter, Emacs seems to insert "/Application Data/Application…
Byrne
  • 11
  • 1
1
vote
1 answer

Load and activate of Emacs package.el

I have something like (to be simplify) (require 'package) (setq package-archives '(("org" . "http://orgmode.org/elpa/") ("melpa" . "http://melpa.org/packages/") ("melpa-stable" .…
Saddle Point
  • 3,074
  • 4
  • 23
  • 33