unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* turning line mode on/off with defun not working
@ 2013-12-05 18:42 Wes James
  2013-12-05 18:48 ` Drew Adams
  0 siblings, 1 reply; 15+ messages in thread
From: Wes James @ 2013-12-05 18:42 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs



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'.
 
----------
I can see how to use C-h f interactive.

How do you use 'i interactive'. I've tried c-x and m-x and not sure how this one works.

(sorry if the indent/quoting is crappy, icloud mail is definitely lacking....)

Thanks,

-wes

^ permalink raw reply	[flat|nested] 15+ messages in thread
* turning line mode on/off with defun not working
@ 2013-12-05 17:28 Wes James
  2013-12-05 17:31 ` Drew Adams
  0 siblings, 1 reply; 15+ messages in thread
From: Wes James @ 2013-12-05 17:28 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-12-07 13:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8198.1386264536.10748.help-gnu-emacs@gnu.org>
2013-12-06 18:35 ` turning line mode on/off with defun not working Emanuel Berg
2013-12-06 19:21   ` Wes James
     [not found]   ` <mailman.8418.1386360511.10748.help-gnu-emacs@gnu.org>
2013-12-06 21:35     ` Emanuel Berg
2013-12-06 21:42       ` Emanuel Berg
2013-12-06 22:35         ` Emanuel Berg
2013-12-06 23:05           ` Wes James
2013-12-06 23:16             ` Emanuel Berg
2013-12-07  9:06               ` PJ Weisberg
     [not found]               ` <mailman.8440.1386407185.10748.help-gnu-emacs@gnu.org>
2013-12-07 13:28                 ` Emanuel Berg
2013-12-05 18:42 Wes James
2013-12-05 18:48 ` Drew Adams
2013-12-05 19:00   ` Wes James
  -- strict thread matches above, loose matches on Subject: below --
2013-12-05 17:28 Wes James
2013-12-05 17:31 ` Drew Adams
2013-12-05 17:54   ` Wes James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).