# HG changeset patch # User Juanma Barranquero # Date 1192532248 0 # Node ID e091b0e7b0c769013d2bce969f2bc769d2a0458a # Parent 4801bb53c00e4ba65a3dc64989847722c1a90c18 (bs-mode): Set hooks (accidentally left out in the previous commit). diff -r 4801bb53c00e -r e091b0e7b0c7 lisp/bs.el --- a/lisp/bs.el Tue Oct 16 10:52:09 2007 +0000 +++ b/lisp/bs.el Tue Oct 16 10:57:28 2007 +0000 @@ -671,7 +671,10 @@ show-trailing-whitespace nil font-lock-global-modes '(not bs-mode) font-lock-defaults '(bs-mode-font-lock-keywords t) - font-lock-verbose nil)) + font-lock-verbose nil) + (add-hook 'window-size-change-functions 'bs--track-window-changes) + (add-hook 'kill-buffer-hook 'bs--remove-hooks nil t) + (add-hook 'change-major-mode-hook 'bs--remove-hooks nil t)) (defun bs--restore-window-config () "Restore window configuration on the current frame."