tags:

views:

790

answers:

3

Hello,

I am using emacs on ubuntu 9.04.

I have my emacs configuration file in ~/.emacs.d directory.

My emacs file is called .emacs

I have some basic configuration. However, everytime I start emacs it never loads my configuration and I have to keep doing it manually using i.e.

M-X Transient-mark-mode

My emacs file is listed below:

;; Emac customization file path
(add-to-list 'load-path "~/emacs.d")

;; Use font lock mode
(global-font-lock-mode t)

;; Highlight cursor line
(global-hl-line-mode t)

;; Highlight selected region
(transient-mark-mode t)

I want to add to this configuration instead of manually added entries.

Many thanks for any advice,

+6  A: 

Your init file contains personal EmacsLisp code that you want to execute when you start Emacs.

  • For GnuEmacs, it is ~/.emacs or _emacs or ~/.emacs.d/init.el.
  • For XEmacs, it is ~/.xemacs or ~/.xemacs/init.el.
Török Gábor
+3  A: 

Torok Gabor's answer is what you are looking for. I only wish to point out a minor typo in your init file, it should be

(add-to-list 'load-path "~/.emacs.d")
vedang
+2  A: 
quodlibetor