From: Juanma Barranquero Date: Tue, 16 Oct 2007 10:57:28 +0000 (+0000) Subject: (bs-mode): Set hooks (accidentally left out in the previous commit). X-Git-Tag: emacs-pretest-22.1.90~597 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8db43126511d3ab721efe3c383de08ff661b2c35;p=emacs.git (bs-mode): Set hooks (accidentally left out in the previous commit). --- diff --git a/lisp/bs.el b/lisp/bs.el index 548d1b1cfef..8667190fe9b 100644 --- a/lisp/bs.el +++ b/lisp/bs.el @@ -671,7 +671,10 @@ to show always. 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."