unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Make a "general" Emacs configuration
Date: Wed, 11 Aug 2010 17:09:43 +0200	[thread overview]
Message-ID: <m1iq3hp4nc.fsf@80-163.eduroam.rwth-aachen.de> (raw)
In-Reply-To: AANLkTimcypOWb0DT4oUvAts5sqWL6uYkNLChLvQc=xHG@mail.gmail.com

Tim Visher <tim.visher@gmail.com> 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.

--8<---------------cut here---------------start------------->8---
  (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)
--8<---------------cut here---------------end--------------->8---




  reply	other threads:[~2010-08-11 15:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10 14:31 Make a "general" Emacs configuration Andrea Crotti
2010-08-10 16:53 ` Joel James Adamson
2010-08-10 17:26   ` Andrea Crotti
2010-08-10 18:50     ` Gabriele Lanaro
2010-08-10 19:13       ` Andrea Crotti
2010-08-10 23:00         ` Bernardo
2010-08-11  8:52           ` Andrea Crotti
2010-08-11 14:45             ` Tim Visher
2010-08-11 15:09               ` Andrea Crotti [this message]
2010-08-11 19:10                 ` Glauber Alex Dias Prado
2010-08-12  8:39                   ` Andrea Crotti
2010-08-12 13:57                     ` Andrea Crotti
2010-08-12 16:33                       ` Tim Visher
2010-08-12 18:08                         ` Glauber Alex Dias Prado
2010-08-13 13:34                           ` Tim Visher
2010-08-13 18:39                             ` Glauber Alex Dias Prado
2010-08-13  8:55                         ` Andrea Crotti
     [not found] <mailman.1.1281450695.30969.help-gnu-emacs@gnu.org>
2010-08-10 16:11 ` Pascal J. Bourguignon
2010-08-10 16:53   ` rustom
2010-08-10 17:23     ` Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1iq3hp4nc.fsf@80-163.eduroam.rwth-aachen.de \
    --to=andrea.crotti.0@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).