[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make a "general" Emacs configuration
From: |
Andrea Crotti |
Subject: |
Re: Make a "general" Emacs configuration |
Date: |
Wed, 11 Aug 2010 17:09:43 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin) |
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---
- Make a "general" Emacs configuration, Andrea Crotti, 2010/08/10
- Re: Make a "general" Emacs configuration, Joel James Adamson, 2010/08/10
- Re: Make a "general" Emacs configuration, Andrea Crotti, 2010/08/10
- Re: Make a "general" Emacs configuration, Gabriele Lanaro, 2010/08/10
- Re: Make a "general" Emacs configuration, Andrea Crotti, 2010/08/10
- Re: Make a "general" Emacs configuration, Bernardo, 2010/08/10
- Re: Make a "general" Emacs configuration, Andrea Crotti, 2010/08/11
- Re: Make a "general" Emacs configuration, Tim Visher, 2010/08/11
- Re: Make a "general" Emacs configuration,
Andrea Crotti <=
- Re: Make a "general" Emacs configuration, Glauber Alex Dias Prado, 2010/08/11
- Re: Make a "general" Emacs configuration, Andrea Crotti, 2010/08/12
- Re: Make a "general" Emacs configuration, Andrea Crotti, 2010/08/12
- Re: Make a "general" Emacs configuration, Tim Visher, 2010/08/12
- Re: Make a "general" Emacs configuration, Glauber Alex Dias Prado, 2010/08/12
- Re: Make a "general" Emacs configuration, Tim Visher, 2010/08/13
- Re: Make a "general" Emacs configuration, Glauber Alex Dias Prado, 2010/08/13
- Re: Make a "general" Emacs configuration, Andrea Crotti, 2010/08/13