I like Emacs. Some people like VI(M) but emacs has been in my toolbox for a long time and I feel very at home working with it.
Updating the editor has become easier over the years and installing an update is a simple matter of drag and on my Mac. But I use several computers and keeping each in sync with my current favorite settings was becoming a problem.
I recently came up with the idea of using Dropbox to share a single configuration file set for all the computers I use.
My current setup has all my configuration in an emacs Dropbox folder named emacs. The Dropbox client runs in the background syncing file changes. First I moved my local personal settings into the shared folder
ls -la ~/Dropbox/emacs
drwxr-xr-x 6 graham staff 204 Jul 24 15:24 .
drwx------@ 79 graham staff 2686 Jul 25 19:38 ..
-rw-r--r-- 1 graham staff 2974 Jul 23 23:11 .emacs
drwxr-xr-x 22 graham staff 748 Jul 24 15:24 .emacs.d
drwxr-xr-x 9 graham staff 306 Jul 24 09:51 .xemacs
Next I created symbolic links from my home folder to these new files.
➜ ~ ls -la
lrwxr-xr-x 1 graham staff 34 Jul 24 21:30 .emacs -> /Users/graham/Dropbox/emacs/.emacs
lrwxr-xr-x 1 graham staff 36 Jul 24 21:31 .emacs.d -> /Users/graham/Dropbox/emacs/.emacs.d
-rwlrwxr-xr-x 1 graham staff 35 Jul 24 21:30 .xemacs -> /Users/graham/Dropbox/emacs/.xemacs
Once this change has been made on each computer that I use or on a new machine I get a consistent emacs experience. When I get bored with a particular UI theme and make a change that change gets replicated so I have the same settings everywhere.
Emacs Package manager
I have a long history with text editors and I have always been facinated with the different flavours of interfaces and capabilities. After working my way through ED and then VI Emacs was a bit of a revalation. I found myself idle for a few minutes this morning and thought I would do some editor maintenance and install haml-mode into my copy of Emacs. While surfing around I came across the Emacs Lisp Package Archive which made the installation a breeze and I then found myself installing all sorts of other additions that might be useful in the future.
ELPA installation instructions (copied from the ELPA site)
(let ((buffer (url-retrieve-synchronously
(re-search-forward "^$" nil 'move)
(eval-region (point) (point-max))
Paste the code into a scratch buffer, and then execute the code in the buffer. Once complete run the package-list-packages command. In the packages buffer ‘i’ marks an entry for installation and ‘x’ installs the marked packages.
WebloggerMode some time ago I had not gotten around to trying it out so I thought I would take it for a spin with this entry.
Nothing earth shattering but the interface is clean and I have a personal commitment to reaquaint myself with the power of emacs.
Installation and setup is straightforward although I would like a little more 1,2,3 style instructions. But then there are only 3 basic instructions before this point:
3. Create first entry
As an update the post is submitted as draft. I then pulled the entry back down with weblogger-fetch-etries which then provides a number of additional fields.