Archive for June, 2007

XMonad does things just right

Posted: June 24, 2007 in XMonad

Two weeks ago I became aware of all the buzz about XMonad and so I tried it. With its default settings it’s pretty much like dwm, but there’s a XMonadContrib module that includes a whole bunch of additional layout algorithms which might be useful in one or the other situation. XMonad is configured by editing [...]

Zapping to strings and regexps

Posted: June 22, 2007 in Emacs

Here’re two functions which are similar to zap-to-char, but zap to a given string or regular expression. (defun th-zap-to-string (arg str) “Same as `zap-to-char’ except that it zaps to the given string instead of a char.” (interactive “p\\nsZap to string: “) (kill-region (point) (progn (search-forward str nil nil arg) (point)))) (defun th-zap-to-regexp (arg regexp) “Same [...]