From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Shortcut to compile "highlighted Text/Tag" Date: Fri, 19 Apr 2013 23:10:47 -0600 Message-ID: <20130420051047.GA4877@hysteria.proulx.com> References: <4b900f10-5c84-44c0-8ad0-4330995710b3@googlegroups.com> <85d98745-77be-4173-850c-d22f004f61af@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1366434661 6133 80.91.229.3 (20 Apr 2013 05:11:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2013 05:11:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 20 07:11:05 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 1UTQ4m-0002ys-As for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Apr 2013 07:11:04 +0200 Original-Received: from localhost ([::1]:58433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTQ4l-0006ok-RT for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Apr 2013 01:11:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTQ4Y-0006oc-IY for help-gnu-emacs@gnu.org; Sat, 20 Apr 2013 01:10:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTQ4X-0007qW-6e for help-gnu-emacs@gnu.org; Sat, 20 Apr 2013 01:10:50 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:39834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTQ4W-0007qM-V9 for help-gnu-emacs@gnu.org; Sat, 20 Apr 2013 01:10:49 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 164E3211D5 for ; Fri, 19 Apr 2013 23:10:48 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id BA5852DCE3; Fri, 19 Apr 2013 23:10:47 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.17.153.58 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:90281 Archived-At: Rami A wrote: > It was not about "loading gid" but more of including all the bits > and pieces needed in my dotemacs file and not use a secondary set of > files "*.el" I see by another recent posting that you have simply included everything in your .emacs. That can get unwieldy. But if it works for you then that is fine. > Again I am very new to lisp and not sure how in the world it is been loaded. Emacs will ship with many lisp libraries in the core distribution. Additional libs can be loaded from the .emacs and you can put them anywhere you want to load them from. I always have a ~/emacs dir with various tidbits there. > But quiet honestly. I don't think there is anything to load for what > I am asking for to work. If you added the lined I mentioned in your > dotemacs file and executed "mkid" in the top level of the source > code, you will be able to gid for these tokens you are searching > for. Well... *I* wouldn't be able to. I don't have mkid nor gid installed on my system. So they would not be found unless I installed them. :-) > I actually finally figured it out after staying late at work on a > Friday night :/ > > In the code that I grabbed from gid.el and included in my dotemacs, > I only changed the following line: > > (interactive (list (word-around-point))) > > Now all works as intended. > I now have: > (global-set-key [f4] 'gid) > > Now when pressing F4, it will search for the token that the cursor > is pointing at, without the need for confirmation. I am glad to hear that you have it worked out for you! Bob