News for hackers. Stuff that matters.
Re:Emacs packages for programmers by tikhonj on Saturday July 21, 2012 @07:05PM (#4275956)
Automatic package management is great. Now I just have to sit down and convert all the (quite numerous) extensions I've installed to using the package manager though :P.

This should help with keeping everything updated and going from computer to computer. My current system just has everything in a private git repository, but this isn't really ideal.

I should also probably submit the one major mode I've written. However, it's specific to a particular course taught by one professor, so nobody is going to be needing it for at least one semester :).

Re:Emacs packages for programmers by Derbasti on Sunday July 22, 2012 @03:10AM (#4276677)
I have set up my Emacs so that it will automatically download and install all my favourite plugins if they are not installed yet.

So to set up a new machine, I simply copy my .emacs over and start Emacs. Emacs will then fetch and install all my plugins automatically. Quite handy!

Re:Emacs packages for programmers by chilie on Sunday July 22, 2012 @10:31AM (#4277410)
Would you mind sharing your .emacs so we can see how you have that set up?
Re:Emacs packages for programmers by mahcuz on Sunday July 22, 2012 @02:09PM (#4278022)
The way people typically do this is by VCing their configurations in a "dotfiles" repository. New machine? Pull your dotfiles, and create the symlinks in your homedir.
Re:Emacs packages for programmers by chilie on Sunday July 22, 2012 @03:17PM (#4278226)
I currently do this with my entire .emacs.d directory, but it sounds like Derbasti only pulls his .emacs, and then has code to check for installed packages and get any that are missing.
Re:Emacs packages for programmers by tcas on Sunday July 22, 2012 @06:22PM (#4278704)
It's pretty easy using package. Here's what I just copied and pasted from my init.el

  (require 'package)
  (dolist (source '(("technomancy" .   "http://repo.technomancy.us/emacs/)
                    ("elpa" . "http://tromey.com/elpa/)))
    (add-to-list 'package-archives source t))
  (package-initialize)

  (defvar my-packages '(starter-kit zenburn-theme auctex color-theme-solarized csharp-mode ecb_snap find-file-in-project flymake-css flymake-php idle-highlight ido-ubiquitous ipython python-mode magit markdown-mode paredit pastels-on-dark-theme php-mode rainbow-mode smex solarized-theme starter-kit-js zenburn-theme)
  "A list of packages to ensure are installed at launch.")

  (dolist (p my-packages)
    (when (not (package-installed-p p))
      (package-install p)))
Where you add the package name to my-packages. It's kinda cool to see it download and compile everything on a new install.
Re:Emacs packages for programmers by nic-ferrier on Tuesday July 24, 2012 @07:45AM (#4285249)
this is really neat. what would be cool is to keep the package list up to date automatically (possibly by advising package installation - https://github.com/nicferrier/emacs-package-store/blob/maste...).

Then everytime you installed a package it would get written into the list and everytime you moved your init it would all happen automatically.

That would be cool. And not hard to do either. You could just keep a customization variable of the "base packages" or something and have it saved by the standard custom stuff.

Re:Emacs packages for programmers by Derbasti on Monday July 23, 2012 @09:19AM (#4280779)
I would have posted my own setup, but it is all but identical to yours, so there you go ;-)
Re:Emacs packages for programmers by nic-ferrier on Saturday July 21, 2012 @07:10PM (#4275965)
My init file is now much much simpler. It's easier to use customization once you're using packages. Package quality is also better than the old "install this file in your load-path somewhere" because there are established ways of doing stuff that work automatically (autoload cookies for example, I'll do another post on them sometime).