Friday, February 12, 2010

Emacs on windows.

So I like to work on my server as it has automated backups and it keeps all my work in one spot. The only issue that I have is I don't always like sitting at the server to do code. So to solve this I installed a X11 server on my Windows laptop. This was rather easy to do and now I get the use of my mouse with emacs. Here is the processes:

1. Download Xming
2. Download Xming-Fonts (this is not included in the straight Xming Download)
3. Download putty
4. Install above programs
5. Add "export LANG=en_US.iso88591" to you .bash_profile
6. Setup X11 forwarding in putty (Connection -> SSH -> X11) Click the Enable check box and add localhost:0 in to the X display location.

When I first set this up I missed the download of the fonts, once this was solved it all worked.

Wednesday, February 10, 2010

Hip Hop PHP

I hope eveyone has seen this and if not you must go look at what has been released from Facebook.

Hip Hop PHP

If someone has tried it or has results they would like to share let me know.

Friday, February 5, 2010

Setting Up Emacs for Erlang

Here is what you need to add to you .emacs file in you home dir to get emacs to do syntax highlighting and compiling.

(setq load-path (cons "/lib/erlang/lib/tools-2.6.5/emacs" load-path))
(setq erlang-root-dir "")
(setq exec-path (cons "/bin" exec-path))
(require 'erlang-start)
(custom-set-variables '(transient-mark-mode t))
(setq font-lock-maximum-decoration t)
(global-font-lock-mode 1)

In case you need a cheat sheet for emacs.
http://www.rgrjr.com/emacs/emacs_cheat.html