[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add-hook problem, file mode specification error?
From: |
wenbinye |
Subject: |
Re: add-hook problem, file mode specification error? |
Date: |
27 Jul 2006 19:44:53 -0700 |
User-agent: |
G2/0.2 |
What is the result after C-h v perl-mode-hook?
Are you change to cperl-mode?
David Schneider wrote:
> Some time ago I asked how to modify the compile command in emacs, and
> several people were kind enough to help me out with the code:
>
> (add-hook 'perl-mode-hook
> (lambda ()
> (set (make-local-variable 'compile-command)
> (concat "perl -w " (buffer-file-name)))))
>
> which I greatly appreciated. Recently the command has stopped
> working, and I haven't been able to figure out why - perhaps I
> accidentally modified my .emacs file or some other configuration
> issue. The message file mode specification error comes up when
> loading my .emacs file - I have not tried to isolate that yet. I can
> create a compile command for c, but not perl, is there a way to view
> the 'hooks' that are in place for a mode, will add-hook return
> anything to indicate failure?