diff options
| -rw-r--r-- | lisp/hl-line.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/hl-line.el b/lisp/hl-line.el index 47d5b0f247e..70ba0fcfc28 100644 --- a/lisp/hl-line.el +++ b/lisp/hl-line.el | |||
| @@ -127,6 +127,16 @@ Currently used in calendar/todo-mode." | |||
| 127 | (let (inhibit-quit) | 127 | (let (inhibit-quit) |
| 128 | (hl-line-mode 1)))) | 128 | (hl-line-mode 1)))) |
| 129 | 129 | ||
| 130 | (defun hl-line-unload-function () | ||
| 131 | "Unload the Hl-Line library." | ||
| 132 | (global-hl-line-mode -1) | ||
| 133 | (save-current-buffer | ||
| 134 | (dolist (buffer (buffer-list)) | ||
| 135 | (set-buffer buffer) | ||
| 136 | (when hl-line-mode (hl-line-mode -1)))) | ||
| 137 | ;; continue standard unloading | ||
| 138 | nil) | ||
| 139 | |||
| 130 | ;;;###autoload | 140 | ;;;###autoload |
| 131 | (define-globalized-minor-mode global-hl-line-mode | 141 | (define-globalized-minor-mode global-hl-line-mode |
| 132 | hl-line-mode hl-line-turn-on | 142 | hl-line-mode hl-line-turn-on |