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
3
votes
4 answers

Change Emacs window appearance when it loses focus

When I program I use two screens with Emacs on both with two buffers split in each window totaling 4 open source files on screen at any one time. I switch between buffers with C-x b and between Windows with Alt-TAB. I change the appearance of…
Alan Turing
  • 12,223
  • 16
  • 74
  • 116
3
votes
1 answer

Making emacs always insert (and backspace) 4 space tabs?

I thought I had this set fine, however now occasionally emacs will go and insert an 8 character tab, or a 6 or 5 character tab.... Maybe this is caused by the document (this has occurred in a large text file which contains many different tab…
tobeannounced
  • 1,999
  • 1
  • 20
  • 30
3
votes
2 answers

Add hook to default mode when using emacs -q -l

I have been loading emacs with emacs -q -l "init.el" quite a bit and was trying to enable auto-complete in my scratch buffer. I was struggling to figure out why it wasn't working but realized it must have to do with the order of operations when…
Rorschach
  • 31,301
  • 5
  • 78
  • 129
3
votes
1 answer

Emacs folding mode error

I want to be able to use the emacs folding mode provided by folding.el from http://www.emacswiki.org/emacs/FoldingMode I put the following in my .emacs file: (setq load-path (cons (concat (getenv "HOME") "/.emacs.d") load-path)) (load…
forefinger
  • 3,767
  • 1
  • 22
  • 18
3
votes
2 answers

Where did dired-omit-toggle disappear in Emacs 23.2?

The challenge of upgrading from Emacs 21.2 to 23.2 continues... In my .emacs I have the very convenient: (global-set-key (quote [f4]) (quote dired-omit-toggle)) It used to work since Emacs 18... but it no longer works in Emacs 23.2: Lisp error:…
Android Eve
  • 14,864
  • 26
  • 71
  • 96
3
votes
2 answers

List loaded config files at Emacs start up?

Background: I modularised the init.el file into several files and tried to load them one by one from init.el. Each file has a: (provide 'xxx) at the end and I use: (require 'xxx) to load them. (before I used load-library to load them, but recent I…
X.Arthur
  • 61
  • 5
3
votes
4 answers

What is the difference between using "setq" or not to set an Emacs setting?

Very simple question but confuse me for some time: (setq visible-bell t) and (visible-bell t) both seem work. But (desktop-save-mode 1) works, while (setq desktop-save-mode 1) not. May I ask why is this?
X.Arthur
  • 61
  • 5
3
votes
2 answers

Anyone know how I can change the color of the filenames on my modeline in emacs?

Anyone know how I can change the color of the filenames on my modeline? EMACS Themeing http://floatsolutions.net/docs/2010-06-10_1500.png. Here's the theme I'm using: (defun color-theme-twilight () "Color theme by Marcus Crafter, based off the…
math0ne
  • 752
  • 6
  • 12
3
votes
2 answers

Add several functions as hooks in Emacs

How could I simplify something like the following code in my init.el file? (add-hook 'org-mode-hook 'turn-on-auto-revert-mode) (add-hook 'org-mode-hook 'turn-on-org-cdlatex) (add-hook 'org-mode-hook 'smartparens-mode) (add-hook 'org-mode-hook…
rvf0068
  • 1,339
  • 9
  • 19
3
votes
2 answers

How to override override modeline customization from org-faces.el?

org-faces.el contains this code (org-copy-face 'mode-line 'org-mode-line-clock "Face used for clock display in mode line.") ;; ...snip... (provide 'org-faces) ;;; org-faces.el ends here Which makes the right side of my modeline (the org clock…
Brian Wood
  • 657
  • 7
  • 13
3
votes
1 answer

git submodule update --init Error while installing dot-emacs files

I try to install a dotfiles config for emacs (https://github.com/dhaley/dot-emacs). I did all like instructed (download and install of the macport of emacs via brew, clone of the repsitory) and now when I use the command git submodules update --init…
Dennis Seidel
  • 519
  • 1
  • 3
  • 13
3
votes
3 answers

Emacs Setting which-function-mode

I would like to have which-function-mode on by default when I open up Emacs. I've added the following lines to my .emacs file. (setq which-func-mode t) (setq which-function-mode t) When I open up a .cpp file and navigate to the body of a…
Stephen Burke
  • 882
  • 3
  • 10
  • 25
3
votes
2 answers

Re-filling entire paragraph automatically with auto-fill-mode?

Motivation: Using the defaults, Auto Fill mode seems not as useful as I might have hoped: If I insert a sentence in the middle of a paragraph, only the current line is re-filled. When I insert a sentence, I want the entire paragraph to be…
3
votes
3 answers

Changing the initialization location of Emacs

I used to take the Programming languages course on Coursera and for the sake of the course i installed SML-Mode. Now, I'd want to set up a Clojure environment in Emacs but instead of initializing Emacs from ~/.emacs.d, it initializes from the…
3
votes
1 answer

Emacs: default-frame-alist setting is ignored

I would like all frames to overlap at (1,1). Yet with a .emacs containing (setq initial-frame-alist '((top . 1) (left . 1) (width . 80) (height . 55))) (setq default-frame-alist '((top . 1) (left . 1) (width . 80) (height .…
Calaf
  • 10,113
  • 15
  • 57
  • 120