From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Thor Nordstrand <thnords@online.no>
Cc: help-gnu-emacs@gnu.org
Subject: Re: SV: Post script printing from emacs
Date: Fri, 4 Jan 2008 16:04:04 +0100 [thread overview]
Message-ID: <819DA1E5-C41E-47DD-BE47-ADE8C3F89115@Web.DE> (raw)
In-Reply-To: <27135590.2493421199450567640.JavaMail.adm-moff@moffice5.nsc.no>
Am 04.01.2008 um 13:42 schrieb Thor Nordstrand:
> Do you know how to override these settings from my .emacs file?
There are two ways: either
(require 'vhdl-mode)
(when the ELisp file has a provide statement) to make GNU Emacs aware
of this mode, its functions, and variables and then make your
corrective settings, or use a hook. Like in
(add-hook 'vhdl-mode-hook
(lambda ()
(setq ...)
(message "vhdl-mode-hook applied")
)
which will be executed whenever vhdl-mode is being initiated for a
buffer. Take care that no recursion occurs.
A third method can be to edit loadup.el or its local variant to load
vhdl-mode.el when GNU Emacs is created. Then the require statement in
~/.emacs is not needed.
> Should I go into my vhdl-mode.elc to make the changes, changes in
> the vhdl-mode.el file does not seem to have any effect?
It makes no sense to change the ELC files: it's derived from the EL
file by byte-compiling it. And it's rather nasty binary. You have
functions like byte-compile-file or batch-byte-compile, I think Lisp-
mode allows to byte-compile the buffer you're just working in, and
finally in dired-mode you can simply type B, dired-do-byte-compile.
So you can edit vhdl-mode.el and just need to byte-compile it
afterwards, after saving it.
And from this it makes no sense to attach an ELC file ...
--
Greetings
Pete
People say that if you play Microsoft CD's backwards, you hear
satanic things, but that's nothing, because if you play them
forwards, they install Windows.
prev parent reply other threads:[~2008-01-04 15:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-31 13:16 Post script printing from emacs Thor Nordstrand
2008-01-02 19:52 ` Peter Dyballa
2008-01-03 6:59 ` SV: " Thor Nordstrand
2008-01-03 22:53 ` Peter Dyballa
2008-01-04 12:42 ` Thor Nordstrand
2008-01-04 15:04 ` Peter Dyballa [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=819DA1E5-C41E-47DD-BE47-ADE8C3F89115@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=thnords@online.no \
/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.
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).