[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
End of .emacs file during parsing
From: |
news |
Subject: |
End of .emacs file during parsing |
Date: |
Mon, 03 Jul 2006 20:36:17 +0100 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
Hi
I've only recently started using emacs, but I think I'm falling in love
with it already. I've started compiling a .emacs file, mainly from bits
gathered from the internet (though I always try to actually know what
they all do!). However, when I load emacs I get a message saying "Error
in init file: End of file during parsing".
I've looked for any obvious mistakes in my .emacs file but can't find
any. Does anyone have any ideas? I've included my .emacs file below:
Cheers,
Robin
---File .emacs beings---
;; -*-Emacs-Lisp-*-
(global-set-key "\C-w" 'backward-kill-word)
(global-set-key "\C-x\C-k" 'kill-region)
(global-set-key "\C-c\C-k" 'kill-region)
;; Function keys
(global-set-key [f1] 'manual-entry)
(global-set-key [f2] 'info)
(global-set-key [f3] 'repeat-complex-command)
(global-set-key [f4] 'other-frame)
(global-set-key [f5] 'compile)
(global-set-key [f6] 'previous-error)
(global-set-key [f7] 'next-error)
(global-set-key [f8] 'save-buffer)
(global-set-key [f9] 'find-file)
(global-set-key [f10] 'buffer-list)
(global-set-key [f11] 'kill-buffer)
(global-set-key [f12] 'direc)
(global-set-key [C-f1] 'comp
;; Misc
(global-set-key [C-tab] "\C-q\t") ; Control tab quotes a tab.
(setq backup-by-copying-when-mismatch t)
;; Treat 'y' or <CR> as yes, 'n' as no.
(fset 'yes-or-no-p 'y-or-n-p)
;; Pretty diff mode
(autoload 'ediff-buffers "ediff" "Intelligent Emacs interface to diff" t)
(autoload 'ediff-files "ediff" "Intelligent Emacs interface to diff" t)
(autoload 'ediff-files-remote "ediff"
"Intelligent Emacs interface to diff")
;; Complement to next-error
(defun previous-error (n)
"Visit previous compilation error message and corresponding source code."
(interactive "p")
(next-error (- n)))
;; Misc...
(setq compile-command "gcc")
---File .emacs ends---
- End of .emacs file during parsing,
news <=