Archive for December 2006
Quick notes…
To drive zsh to complete ssh with your username@host possibilities:
compctl -k "(user1@host1 user2@host2)" ssh
To eliminate space around the cursor in emacs, use M-SPC to leave one and M-\ to kill them all.
I figured out how to setup Gnus to use it with e-mail aliases:
(defun make-address-list (ls)
(cond ((= 0 (length ls)) "")
((= 1 (length ls)) (car ls))
(t (concat (car ls) ", " (make-address-list (cdr ls))))))
(add-hook 'message-mode-hook 'my-addresses-hook)
(setq mail-aliases
`(("addr1" ,(make-address-list '("foo@bar.hu"
"baz@long-server-name.com"
"kotee@elte.hu")))
("addr2" "hi@all.info")))
(defun my-addresses-hook ()
(mapc (lambda (pair)
(define-abbrev local-abbrev-table
(car pair)
(cadr pair)))
mail-aliases))
in your .emacs file will do it.
If you wanna try out your command of your favorite language then visit that fuckin’ addictive Sphere Online Judge. One can submit solutions to problems in C, C++, Nice, Pascal, Java, C#, Nemerle, Smalltalk, Assembly (Nasm), Algol, Fortran, Ada 95, Bash, Perl, Python, Ruby, Lua, Icon, Pike, PHP, Scheme, Common Lisp, Haskell, Ocaml, Clips, Prolog, Whitespace and in Brainfuck.