From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Add new keyword in Emacs mode Date: Wed, 7 Oct 2009 13:46:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7df3bc43-ff5e-434d-8c34-1859175635dc@v15g2000prn.googlegroups.com> References: <12ffbf59-f52a-4fe5-b149-b3aedf6368aa@h30g2000vbr.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254971942 24388 80.91.229.12 (8 Oct 2009 03:19:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 03:19:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 08 05:18:52 2009 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.50) id 1MvjWm-0003wd-Fl for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 05:18:52 +0200 Original-Received: from localhost ([127.0.0.1]:34158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvjWl-0001Kb-6K for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 23:18:51 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!v15g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1254948372 27755 127.0.0.1 (7 Oct 2009 20:46:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 7 Oct 2009 20:46:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v15g2000prn.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.24 Safari/532.0, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu comp.emacs:99264 gnu.emacs.help:173656 X-Mailman-Approved-At: Wed, 07 Oct 2009 23:18:28 -0400 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:68758 Archived-At: On Oct 7, 1:16 pm, Beware wrote: > Hi, > > following the previous post i wrote, i'm wonder if it's possible to > add new keyword in a mode of emacs. which is your previous post? not all read all threads in newsgroup these days. Best to post the url to groups.google.com and what you mean by keywords? you want to add words so that keywoard completion command will expand to your new words? are you talking about keyword completion in minibuffer? or in a major lang mode? or minor modes such as ido? also, whether it's in shell, file name completion, or just computer language's keyword? or user defined function names? be specific in your question. if your question is about in a major mode of a particular language, and you want keyword completion to work on user defined function, then you can generate tag files. (i've never used this) Look for the emacs doc node: (emacs) Tags if you want to add words to a language mode, you can use a hook and add to its keyword list... but this depends on the implementation of the mode. =E2=80=A2 How To Implement Keyword Completion in Emacs http://xahlee.org/emacs/elisp_keyword_completion.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84