help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: turning line mode on/off with defun not working


From: Wes James
Subject: Re: turning line mode on/off with defun not working
Date: Thu, 05 Dec 2013 17:54:16 +0000 (GMT)

On Dec 05, 2013, at 10:31 AM, Drew Adams <drew.adams@oracle.com> wrote:

What is the difference?

(interactive)

See the Elisp manual - use `i interactive'.

Or use `C-h f interactive'.
 
That did it.  Thanks.

(defun lnon ()
  "Turn line numbers on"
  (interactive)
  (global-linum-mode t)
)

(defun lnoff ()
  "Turn line numbers off"
  (interactive)
  (global-linum-mode 0)
)

-wes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]