From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Seeking advice on writing a "line-based" major mode Date: Mon, 08 Jun 2015 00:23:40 +0200 Organization: Aioe.org NNTP Server Message-ID: <87d217b1jn.fsf@debian.uxu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433715629 5265 80.91.229.3 (7 Jun 2015 22:20:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2015 22:20:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 08 00:20:25 2015 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 1Z1ivZ-0008Vu-5h for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 00:20:25 +0200 Original-Received: from localhost ([::1]:55320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1ivY-0005P4-Fa for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 18:20:24 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:1NpEj8L4Qs6oRFqWfWKk+aOp5uY= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:212536 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:104821 Archived-At: Marcin Borkowski writes: > This raises two problems. > > 1. I want to be able to display these objects using > some kind of a "template" (not unlike org's > "property table", or dired's format etc.). I'd like > this "template" to be configurable using a user > option (with possibilities like "x characters for > a name, then y characters for description, etc. > for other fields"). > > 2. When the point is one one of these lines, I want > various keybindings to perform some actions on the > object in question (like, again, in Dired or > org-agenda). Use the source, Luke! If it is like Dired and org-agenda (?) then check out that source. It sounds like you can also benefit from checking out the sources of `package-menu-mode', `Buffer-menu-mode', and even the Gnus group and summary modes if you are brave. Dig in! > Of course I could code all that myself - it doesn't > seem to be too much work - but why reinvent > the wheel? Answer: because it is enjoyable, interesting, and creative as you don't focus on understanding what someone else did but instead on what you can do and what you can learn how to do, thus getting exactly what you want and nothing else - and besides, this time a"round" you might stumble on something that will revolutionize the entire pitch-black wheel industry! -- underground experts united http://user.it.uu.se/~embe8573