March 13, 2017

The latest additions to my init.el

11:00 -0400

Inspired by xkcd (but using Alt-mousewheel):

(global-set-key (kbd "<M-mouse-5>") 'undo)
(global-set-key (kbd "<M-mouse-4>") 'redo)

And, since I sometimes need to paste from an HTTP request into a buffer:

(defun insert-from-url (url)
  (interactive "MURL: ")
  (let ((url-request-method "GET")
        (dest (current-buffer))
        (src (url-retrieve-synchronously url)))
    (set-buffer src)
    (goto-char (point-min))
    (search-forward "\n\n")
    (set-buffer dest)
    (insert-buffer-substring src (match-end 0))))
0 Comments
March 13, 2014
11:57 -0400
Hubert Chathi: loves https://www.gnu.org/software/tramp/ #
0 Comments
March 6, 2013
20:49 -0500
Hubert Chathi: switched back to # for mail reading. Feels good. Now to customize it. #
0 Comments
July 5, 2012
18:52 -0400
Hubert Chathi: just found out about two awesome # minor modes. Now my code can be *angrier* fruit salad.
0 Comments