I was wondering if the
comment-dwin (M-;) command could be changed that if i am anywhere in the line the whole line is commented and not a
comment started from the end of the line. based on the idea found in a mailing list i altered the command with
;; http://www.opensubscriber.com/message/emacs-devel@gnu.org/10971693.html
(defun comment-dwim-line (&optional arg)
(interactive "*P")
(comment-normalize-vars)
(if (and (not (region-active-p)) (not (looking-at "[ \t]*$")))
(comment-or-uncomment-region (line-beginning-position) (line-end-position))
(comment-dwim arg)))
(global-set-key "\M-;" 'comment-dwim-line)
add this to your .emacs file and enjoy.

Loading ...
How to
install Emacs from source?
You will need Xcode tools to perform this operation.
MacBook-Pro: mkdir src
MacBook-Pro: cd src
MacBook-Pro: cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs
MacBook-Pro: cd emacs
MacBook-Pro: ./configure --with-ns --with-jpeg=no --with-gif=no --with-tiff=no
MacBook-Pro: make bootstrap
MacBook-Pro: make
MacBook-Pro: make install
MacBook-Pro: sudo cp -r nextstep/Emacs.app /Applications/Emacs.app
if you would like to use it in terminal
MacBook-Pro: cd src
MacBook-Pro: make
MacBook-Pro: cp emacs /usr/bin/emacs
MacBook-Pro: emacs --version
GNU Emacs 23.1.90.1
Copyright (C) 2009 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
MacBook-Pro: emacs -nw

Loading ...
open a terminal and run the following to show hidden files
MacBook-Pro: defaults write com.apple.Finder AppleShowAllFiles true
MacBook-Pro: killall Finder
to hide them run the following
MacBook-Pro: defaults write com.apple.Finder AppleShowAllFiles false
MacBook-Pro: killall Finder

Loading ...
I have my MacBookPro for 1 year now, and recently I had to often the message that my
MAC OS X HDD is running out of space, and effectively finder said ZeroKB, df -h 0 available. As I was installing quite a lot of apps for test during the last year, I have decided to reinstall
snow leopard.
Read more…

Loading ...
Unfortunately my
previous solution was only temporary, after a while I mentioned that mongrels are eating the memory and hanging.
Read more…

Loading ...
I have seen some serious performance issues and some error messages with
nginx and
mongrel_
cluster.
Read more…

Loading ...
By default it is not working and the workspace switcher show only 1 workspace whatever you set. Googleing a bit I found the
solution.

Loading ...