[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
turning line mode on/off with defun not working
From: |
Wes James |
Subject: |
turning line mode on/off with defun not working |
Date: |
Thu, 05 Dec 2013 17:28:34 +0000 (GMT) |
I have these lines in my .emacs, but they don't work. Why?
(defun lnon()
"Turn line numbers on"
(global-linum-mode t)
)
(defun lnoff()
"Turn line numbers off"
(global-linum-mode 0)
)
I press alt-x and then type in lnon or lnoff but it says [No Match]
I have this and it works:
; define function to shutdown emacs server instance
(defun ked ()
"Save buffers, Quit, and Shutdown (kill) server"
(interactive)
(save-some-buffers)
(kill-emacs)
)
What is the difference?
Thanks,
-wes
- turning line mode on/off with defun not working,
Wes James <=