From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Symbol's function definition is void Date: Thu, 6 Jun 2013 11:21:23 -0700 (PDT) Message-ID: References: <02a6d632-78bd-4cf7-95fa-a50f14738218@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370542916 19191 80.91.229.3 (6 Jun 2013 18:21:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Jun 2013 18:21:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Lalit Saraswat Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 06 20:21:55 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ukeos-0006BB-5f for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jun 2013 20:21:54 +0200 Original-Received: from localhost ([::1]:33312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukeor-0003v7-MD for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jun 2013 14:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkeoT-0003m7-GR for help-gnu-emacs@gnu.org; Thu, 06 Jun 2013 14:21:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkeoS-0006BP-Ld for help-gnu-emacs@gnu.org; Thu, 06 Jun 2013 14:21:29 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:33656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkeoS-0006BI-FJ for help-gnu-emacs@gnu.org; Thu, 06 Jun 2013 14:21:28 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r56ILMeX032249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Jun 2013 18:21:23 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r56ILN9J015790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Jun 2013 18:21:24 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r56ILNJf015778; Thu, 6 Jun 2013 18:21:23 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91357 Archived-At: > 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).