From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glauber Alex Dias Prado Newsgroups: gmane.emacs.help Subject: Re: Make a "general" Emacs configuration Date: Wed, 11 Aug 2010 16:10:42 -0300 Message-ID: <87ocd9c6dp.fsf@gmail.com> References: <4C61DA12.5080403@pobox.com> Reply-To: smade4@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281553389 13534 80.91.229.12 (11 Aug 2010 19:03:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2010 19:03:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 11 21:03:06 2010 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 1OjGZt-0001y6-WD for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Aug 2010 21:03:06 +0200 Original-Received: from localhost ([127.0.0.1]:54201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjGZt-0002kh-EO for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Aug 2010 15:03:05 -0400 Original-Received: from [140.186.70.92] (port=43065 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjGZE-0002iB-0C for help-gnu-emacs@gnu.org; Wed, 11 Aug 2010 15:02:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjGZC-0004T1-Ng for help-gnu-emacs@gnu.org; Wed, 11 Aug 2010 15:02:23 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:39138) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjGZC-0004Sg-K8 for help-gnu-emacs@gnu.org; Wed, 11 Aug 2010 15:02:22 -0400 Original-Received: by gyb11 with SMTP id 11so163175gyb.0 for ; Wed, 11 Aug 2010 12:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :face:reply-to:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=84qaFpRd+/O6LbgRrjyxw4Q3n8SblRNsbmhAso/E588=; b=lDpfFXk8JGJOIlmBhCPuFRNmZg+sqDgL2JCGjy7S07ksfVZorejBgD6MNF5u+dS5gW YX9N26NzljzPmVpkPeM3IKxZfoJzHjJFlOYsxh16tHR71PWCT8+jpHK2H6QXxNugf9eA ElAn7cBG3B7wbEwu1MGOjhrLsTqf91mxZDHwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:reply-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=KISik+1qPtZGpGuWa6xZv5YVuCZw2F8lUKC/Owm1OTwa1EArKT/Y95vBxxoNA7KlIN +PyO/xl3HH+gFyR8o3qn8uwsrSXqedps9gwT9J7WYN74GghTxkduPWpnlEqZis+A0eQ7 f6wfxqpBNxe7lv1uBZNSVTT5NeWfGSg/95i5s= Original-Received: by 10.150.58.20 with SMTP id g20mr21515409yba.225.1281553337731; Wed, 11 Aug 2010 12:02:17 -0700 (PDT) Original-Received: from localhost ([187.2.130.170]) by mx.google.com with ESMTPS id q3sm463339ybe.2.2010.08.11.12.02.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Aug 2010 12:02:16 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEX9/Py9sZ6FcE5gCec3 AAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAwAAAAMADO7oxXAAABGklEQVQoz02RPW6E MBCFx6uQwlWKJQUHSJFTUKUmUowiVylWSOtT7BEoshRUKQCt3ykz4x+wKfCnGea9eRDxUX8UjzIX qpYMDlsPE6EC0ANjBL5NwBqg7j36Fb4LAIPZAGHGG8PG4AXeeQBmfsYdvA2gBbBaLGcWtQEc/FPL tU8hx9IC1AhZTEFK8U3gFjd4BQYgtKmf2Nmm3ZQIB6+aF3VsPUAzipEIA3gMNsiLDbWk5jSgeVD3 bDMsvOEVse1FDP2ecijUoyNMKcoTJ+AyEH+r55yrmLoXQKaE+lFAU1b0tYSyTfsCqq8S0u87h9EJ hpB6Gq0vopOMKtlyF3XdUSH9TZW90d5XuzaLuOl+GNDYDtMqJpXOBzv7B2mugjLxx2cLAAAAQnRF WHRjb21tZW50AENSRUFUT1I6IGdkLWpwZWcgdjEuMCAodXNpbmcgSUpHIEpQRUcgdjYyKSwgcXVh bGl0eSA9IDEwMAowBf9PAAAAJXRFWHRjcmVhdGUtZGF0ZQAyMDA5LTA1LTI2VDA3OjM2OjUwLTAz OjAw8P7KDgAAABF0RVh0anBlZzpjb2xvcnNwYWNlADIsdVWfAAAAIHRFWHRqcGVnOnNhbXBsaW5n LWZhY3RvcgAyeDIsMXgxLDF4MUn6prQAAAAldEVYdG1vZGlmeS1kYXRlADIwMDktMDUtMjZUMDc6 MzY6NTAtMDM6MDCvT7w6AAAAAElFTkSuQmCC In-Reply-To: (Andrea Crotti's message of "Wed, 11 Aug 2010 17:09:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74552 Archived-At: also keep submodules here but i do only use emacs on linux so i can share it with many machines and have a backup, no problems about versioning only use latest stuff. Andrea Crotti writes: > Tim Visher writes: > >> FWIW, my config file makes extensive use of git submodules and solves >> the consistent version across deploys of the configuration. I also >> use a slightly modified version of emacs-version to detect OS >> settings. However, I'm still a complete n00b when it comes to elisp >> and emacs in general so my configuration is probably riddled with >> awful antipatterns. >> >> http://github.com/timvisher/.emacs/tree/master/site-lisp/ >> > > Well I think is not too bad at all. > I didn't know about label macro btw, why not flet? > > If I can suggest something I like to add directories in the first level > automatically to the load path, because normally if I put something > there I want to use it. > > (defun gen-path-dirs () > "Add to load path all the subdirectories of first level" > (interactive) > (message "adding all directories in the first level to the load-path") > (dolist (dir (directory-files conf t)) > (if (and > (file-directory-p dir) > (not (file-symlink-p dir))) > (add-to-list 'load-path dir)))) > > (gen-path-dirs)