Use find-file-hook instead of find-file-hooks.
[bpt/emacs.git] / lisp / linum.el
index 887f4bc..2aa79e0 100644 (file)
 
 ;; Display line numbers for the current buffer.
 ;;
-;; Add the following to your .emacs file:
-
-;;    (require 'linum)
-
-;; Then toggle display of line numbers with M-x linum-mode. To enable
+;; Toggle display of line numbers with M-x linum-mode.  To enable
 ;; line numbering in all buffers, use M-x global-linum-mode.
 
 ;;; Code:
@@ -194,6 +190,13 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
 (defun linum-after-config ()
   (walk-windows (lambda (w) (linum-update (window-buffer))) nil 'visible))
 
+(defun linum-unload-function ()
+  "Unload the Linum library."
+  (global-linum-mode -1)
+  ;; continue standard unloading
+  nil)
+
 (provide 'linum)
 
+;; arch-tag: dea45631-ed3c-4867-8b49-1c41c80aec6a
 ;;; linum.el ends here