From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: add-hook problem, file mode specification error?
Date: Fri, 28 Jul 2006 09:28:41 -0600 [thread overview]
Message-ID: <eadag4$svi$1@sea.gmane.org> (raw)
In-Reply-To: <fc9dc85b0607271900m5a3b4509i59ca4ee6524fea9d@mail.gmail.com>
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?
`C-h v perl-mode-hook' will tell you whether add-hook did what you
expect. But I would start by running emacs with the --debug-init
command line option.
--
Kevin
next prev parent reply other threads:[~2006-07-28 15:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-28 2:00 add-hook problem, file mode specification error? David Schneider
2006-07-28 15:28 ` Kevin Rodgers [this message]
[not found] <mailman.4569.1154052024.9609.help-gnu-emacs@gnu.org>
2006-07-28 2:44 ` wenbinye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='eadag4$svi$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.