From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lowell Gilbert Newsgroups: gmane.emacs.help Subject: Re: How let speedbar know to parse a specific file? Date: Thu, 29 Apr 2010 13:49:39 -0400 Message-ID: <44hbmu9mj0.fsf@be-well.ilk.org> References: <4e2ab100-1d2b-4edd-8a49-62e0b52ad42a@k17g2000pro.googlegroups.com> <44mxwoenox.fsf@be-well.ilk.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273016277 9109 80.91.229.12 (4 May 2010 23:37:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 23:37:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 01:37:55 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9RgX-0006Tk-Gu for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 01:37:53 +0200 Original-Received: from localhost ([127.0.0.1]:40159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9RgW-0008Ip-Sr for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:37:52 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 29 Apr 2010 12:49:40 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) Cancel-Lock: sha1:XIHIOhUcxkMf8S54NJoBIBVMe/c= Original-Lines: 28 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 66.92.78.145 Original-X-Trace: sv3-2NPErXHZoEY1pbD/MyXEbl1mhIsFDNHlPnjb930rXu7tlyPOxJVzLXNoCor1hIZOCt88DvjsdBSCUAz!vOKoYAoi4d75NDHHjuh0K7kTrnjKid15UMyz+cm5Fnwsz8nOKYM446udVcdkGTp+/qYrVAShaZBc!VSPsedgRCQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:177881 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73294 Archived-At: "Daniel (Youngwhan)" writes: > I am not familiar with Lisp language, so could you help me how I can > set up for the major mode properly, please? After further investigation, it turns out that is not sufficient. > I tried to open it as GNUMakefile mode by adding this in .emacs: (add- > to-list 'auto-mode-alist '("\\Makefile-other\\'" . makefile-gmake- > mode)) That will set the major-mode, which you will want after you open up the file, but apparently doesn't help speedbar. This syntax is slightly better than the one you're using: (add-to-list 'auto-mode-alist '("[Mm]akefile-other\\'" . makefile-gmake-mode)) > But, for speedbar, it still does not parse of it. (or even directory > view, it does not show up the Makefile-other as well. You need to set a variable called speedbar-add-supported-extension. But it isn't initialized until you load speedbar mode, so put this in your .emacs: (add-hook 'speedbar-load-hook '(lambda () (speedbar-add-supported-extension "[Mm]akefile-other\\'"))) Good luck.