From: Drew Adams <drew.adams@oracle.com>
To: Lalit Saraswat <leadinglalit@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: RE: Symbol's function definition is void
Date: Thu, 6 Jun 2013 11:21:23 -0700 (PDT) [thread overview]
Message-ID: <f12eacec-f820-45ee-b9da-2d0fa9d45b7e@default> (raw)
In-Reply-To: <CAGBe60EEMk0AwhgWz63AoU2jR6Zy3QLXW0Y97b0G2fagZiS6Ow@mail.gmail.com>
> few more questions on using this file.
> 1) i m not sure where to store this file. or how to add header2.el
> file path in .emacs.
Add its location to your option `load-path'.
M-x customize-option load-path RET
or put this in your init file:
(add-to-list 'load-path "YOUR LOCATION OF HEADER2.EL")
where the string is the directory where header2.el is located.
> 2) i want to add this header in different kind of file like
> .c/.vhd/.v/.cpf/.upf. or in other word i want to use same header
> for any kind of file. what should i add in .emacs.
As the file Commentary says:
;; To have Emacs add a file header whenever you create a new file in
;; some mode, put this in your init file (~/.emacs):
;;
;; (autoload 'auto-make-header "header2")
;; (add-hook 'emacs-lisp-mode-hook 'auto-make-header)
;; (add-hook 'c-mode-common-hook 'auto-make-header)
;; ...
`c-mode-common-hook' should take care of your .c files.
For the other files, figure out what major mode Emacs uses for each
of them, and then use (add-hook 'THAT_MODE 'auto-make-header).
prev parent reply other threads:[~2013-06-06 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 8:53 Symbol's function definition is void Lalit Saraswat
2013-06-06 16:51 ` Drew Adams
2013-06-06 17:52 ` Lalit Saraswat
2013-06-06 18:21 ` Drew Adams [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f12eacec-f820-45ee-b9da-2d0fa9d45b7e@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=leadinglalit@gmail.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.