summaryrefslogtreecommitdiff
path: root/lisp/linum.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2008-01-31 10:59:14 +0000
committerJuanma Barranquero <lekktu@gmail.com>2008-01-31 10:59:14 +0000
commit08cf830bbd55a241619a6d0a4b53ad44c8d187c6 (patch)
tree490bed3e2041138e9e2d12013593ea5d8624aa14 /lisp/linum.el
parent868a6b71bd3bbddeb57ada174555172177b6e9e2 (diff)
downloademacs-08cf830bbd55a241619a6d0a4b53ad44c8d187c6.tar.gz
(linum-unload-function): New function.
Diffstat (limited to 'lisp/linum.el')
-rw-r--r--lisp/linum.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/linum.el b/lisp/linum.el
index 078645c4120..2aa79e0442e 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -190,6 +190,12 @@ 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