Posted in Emacs, Mac OS X on November 24th, 2009 1 Comment »
when trying to install emacs using macports on my new snow leopard install, i got the following error: foo://opt/local/sudo port install emacs —>Â Computing dependencies for emacs —>Â Fetching emacs —>Â Verifying checksum(s) for emacs —>Â Extracting emacs —>Â Applying patches to emacs —>Â Configuring emacs —>Â Building emacs Error: Target org.macports.build returned: shell command […]
Posted in Emacs on May 14th, 2007 1 Comment »
To make emacs color code by default in Terminal when you’re working on your Mac, add this to your ~/.emacs file. ;; turn on font-lock mode (global-font-lock-mode t) (setq font-lock-maximum-decoration t) or to toggle color within emacs, just type: M-x font-lock-mode thanks to sean clarke for this!
Posted in Emacs on January 7th, 2007 7 Comments »
to indent or dedent a block of text in emacs, first set a markpoint: C-space move the cursor to the end of the block, and then hit: C-c-> to indent or C-c-
Posted in Emacs on January 3rd, 2007 9 Comments »
it’s been a bit of a hassle getting emacs to read python files in python-mode. in spite of downloading a python-mode file and putting it in my boot path, emacs still refused to enter python mode. i kept getting the error message: file-error “Cannot open load file” “python-mode” turns out the problem was that i […]
Posted in Emacs on September 21st, 2006 1 Comment »
you can spell check in emacs with the command: $ M-x ispell-buffer however, that’s not very convenient to do over and over; to create a shortcut to the spell-checker, add the following to your .emacs file: (global-set-key “\C-c” ‘ispell-buffer) when you restart emacs, you’ll find that pressing ctrl-c will instantly pull up the spellchecker.
Posted in Emacs on February 8th, 2006 10 Comments »
one of the reasons why i use emacs, as opposed to just a vanilla text editor, is that it auto-indents your code. all you’ve got to do is ask it to do so nicely. just highlight the region of code you want indented (control-space at the beginning of the text block, then move the blinking […]
Posted in Emacs on January 31st, 2006 11 Comments »
it boggles the mind that emacs – famous for having a bazillion keyboard shortcuts – doesn’t have one for quickly finding a line. so, here’s how to make one. go to your home directory in the terminal: >> cd and open up the .emacs file that lives there. add the following line of code to […]