* End of .emacs file during parsing
@ 2006-07-03 19:36 news
2006-07-03 19:42 ` Cor Gest
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: news @ 2006-07-03 19:36 UTC (permalink / raw)
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---
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: End of .emacs file during parsing
2006-07-03 19:36 End of .emacs file during parsing news
@ 2006-07-03 19:42 ` Cor Gest
2006-07-03 19:52 ` Johan Bockgård
2006-07-03 20:06 ` Edward O'Connor
[not found] ` <mailman.3648.1151957192.9609.help-gnu-emacs@gnu.org>
2 siblings, 1 reply; 6+ messages in thread
From: Cor Gest @ 2006-07-03 19:42 UTC (permalink / raw)
(global-set-key [C-f1] 'comp
............................^ Missing paren
Cor
--
OSBBQ 9 september 2006 :: Gewoon omdat het lekker is
http://osbbq.nl.linux.org/info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: End of .emacs file during parsing
2006-07-03 19:42 ` Cor Gest
@ 2006-07-03 19:52 ` Johan Bockgård
0 siblings, 0 replies; 6+ messages in thread
From: Johan Bockgård @ 2006-07-03 19:52 UTC (permalink / raw)
Cor Gest <cor@clsnet.nl> writes:
> (global-set-key [C-f1] 'comp
>
> ............................^ Missing paren
And you can use M-x check-parens to find it.
--
Johan Bockgård
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: End of .emacs file during parsing
2006-07-03 19:36 End of .emacs file during parsing news
2006-07-03 19:42 ` Cor Gest
@ 2006-07-03 20:06 ` Edward O'Connor
[not found] ` <mailman.3648.1151957192.9609.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 6+ messages in thread
From: Edward O'Connor @ 2006-07-03 20:06 UTC (permalink / raw)
> they all do!). However, when I load emacs I get a message saying "Error
> in init file: End of file during parsing".
Here's your problem:
> (global-set-key [C-f1] 'comp
Ted
--
Edward O'Connor
hober0@gmail.com
Ense petit placidam sub libertate quietem.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: End of .emacs file during parsing
[not found] ` <mailman.3648.1151957192.9609.help-gnu-emacs@gnu.org>
@ 2006-07-03 20:20 ` news
2006-07-03 20:26 ` news
0 siblings, 1 reply; 6+ messages in thread
From: news @ 2006-07-03 20:20 UTC (permalink / raw)
Edward O'Connor wrote:
>> they all do!). However, when I load emacs I get a message saying "Error
>> in init file: End of file during parsing".
>
> Here's your problem:
>
>> (global-set-key [C-f1] 'comp
>
>
> Ted
>
Thanks guys! I should have spotted that. Good to know about M-x
check-parens though.
I dunno if I should create a new thread for this, but the next question
I'm a bit stuck on is exactly how to install new packages. I've looked
at a few things on the internet and got .el files - but none of them say
where to put them or anything, and I can't seem to find much of help on
google, even the FAQ doesn't seem to say anything!
Some .el files have comments talking about byte-compiling the file, and
putting it in your load-path, but I'm not really sure what they're
talking about!
Cheers,
Robin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: End of .emacs file during parsing
2006-07-03 20:20 ` news
@ 2006-07-03 20:26 ` news
0 siblings, 0 replies; 6+ messages in thread
From: news @ 2006-07-03 20:26 UTC (permalink / raw)
news wrote:
> Edward O'Connor wrote:
>>> they all do!). However, when I load emacs I get a message saying "Error
>>> in init file: End of file during parsing".
>>
>> Here's your problem:
>>
>>> (global-set-key [C-f1] 'comp
>>
>>
>> Ted
>>
>
> Thanks guys! I should have spotted that. Good to know about M-x
> check-parens though.
>
> I dunno if I should create a new thread for this, but the next question
> I'm a bit stuck on is exactly how to install new packages. I've looked
> at a few things on the internet and got .el files - but none of them say
> where to put them or anything, and I can't seem to find much of help on
> google, even the FAQ doesn't seem to say anything!
>
> Some .el files have comments talking about byte-compiling the file, and
> putting it in your load-path, but I'm not really sure what they're
> talking about!
>
> Cheers,
>
> Robin
In fact I've just found how to do this from the EmacsWiki
(http://www.emacswiki.org/cgi-bin/wiki/InstallingPackages) so I'll have
a go at installing the package.
Robin
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-03 20:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-03 19:36 End of .emacs file during parsing news
2006-07-03 19:42 ` Cor Gest
2006-07-03 19:52 ` Johan Bockgård
2006-07-03 20:06 ` Edward O'Connor
[not found] ` <mailman.3648.1151957192.9609.help-gnu-emacs@gnu.org>
2006-07-03 20:20 ` news
2006-07-03 20:26 ` news
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).