October 11, 2006

Bulk view

Emacs: Hideshow

One of the things I love about vising irc.freenode.net #emacs is that helping people with their questions lets me discover all sorts of cool things about Emacs. Today's nugget? hideshow.el, which allows you to automatically hide / show code. (Equivalent of vim folding).

I've added the following code to my config:

(load-library "hideshow")
(add-hook 'emacs-lisp-mode-hook
          (lambda () (hs-minor-mode 1)
            (set (make-variable-buffer-local 'my-hs-hide) t)))
(defvar my-hs-hide t "Current state of hideshow for toggling all.")
(defun my-toggle-hideshow-all ()
  "Toggle hideshow all."
  (set (make-variable-buffer-local 'my-hs-hide) (not my-hs-hide))
  (if my-hs-hide
(global-set-key (kbd "C-c @ @") 'my-toggle-hideshow-all)
(global-set-key (kbd "C-c @ h") 'hs-hide-block)
(global-set-key (kbd "C-c @ s") 'hs-show-block)
(global-set-key (kbd "C-c @ SPC") 'hs-show-block)


... and then I find that I already have a hideshow config, of course, and that I added it on 2003.11.21... <bonk>!

On Technorati: ,

Random Emacs symbol: timezone-parse-date - Function: Parse DATE and return a vector [YEAR MONTH DAY TIME TIMEZONE].


I just got a flash of what my DemoCamp presentation on Emacs will be like. <laugh> It's going to be *so* diggable.

I need to plan this well. I want to completely blow the DemoCampers away. Maybe even get a standing ovation. ;) That means I need to build in a crescendo.

I should also figure out how to record a presentation and how to put it up online, so that it can go live right after the event. Mwahahaha!

Note to self: Get Adsense sorted out.

Next thing on the horizon: CASCON 2006

I survived the Toast I.T. Toastmasters Open House. Yay!

The next thing on my horizon is CASCON 2006, IBM's free conference. We're still not sure if my research demo is going to get yanked from the tech showcase due to patent concerns, but I'll be helping out with a social computing panel and Hack Night is a go.

Sign up for Hack Night! Free T-shirt, computers, pizza, hacking into the night... Sweet!

Surviving October one thing at a time...

Random Emacs symbol: gnus-cite-unsightly-citation-regexp - Variable: Regexp matching Microsoft-type rest-of-message citations.