Mercurial > emacs
comparison lisp/bs.el @ 105580:49a18cece067
* bs.el (bs-mode): Fix last change. (`revert-buffer-function'
should be automatically buffer-local, but isn't.)
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 13 Oct 2009 01:13:08 +0000 |
parents | 90daaeee02f3 |
children | 1d1d5d9bd884 |
comparison
equal
deleted
inserted
replaced
105579:f846b59ab251 | 105580:49a18cece067 |
---|---|
662 (setq buffer-read-only t | 662 (setq buffer-read-only t |
663 truncate-lines t | 663 truncate-lines t |
664 show-trailing-whitespace nil | 664 show-trailing-whitespace nil |
665 font-lock-global-modes '(not bs-mode) | 665 font-lock-global-modes '(not bs-mode) |
666 font-lock-defaults '(bs-mode-font-lock-keywords t) | 666 font-lock-defaults '(bs-mode-font-lock-keywords t) |
667 font-lock-verbose nil | 667 font-lock-verbose nil) |
668 revert-buffer-function 'bs-refresh) | 668 (set (make-local-variable 'revert-buffer-function) 'bs-refresh) |
669 (add-hook 'window-size-change-functions 'bs--track-window-changes) | 669 (add-hook 'window-size-change-functions 'bs--track-window-changes) |
670 (add-hook 'kill-buffer-hook 'bs--remove-hooks nil t) | 670 (add-hook 'kill-buffer-hook 'bs--remove-hooks nil t) |
671 (add-hook 'change-major-mode-hook 'bs--remove-hooks nil t)) | 671 (add-hook 'change-major-mode-hook 'bs--remove-hooks nil t)) |
672 | 672 |
673 (defun bs--restore-window-config () | 673 (defun bs--restore-window-config () |