all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Migrating from Jove - help?
@ 2004-06-23 21:10 Alan Ezust
  2004-06-23 21:40 ` gebser
  2004-06-23 22:14 ` Kevin Rodgers
  0 siblings, 2 replies; 4+ messages in thread
From: Alan Ezust @ 2004-06-23 21:10 UTC (permalink / raw)


Using:GNU Emacs 21.3.1

I've been using jonathan's own version of emacs since 1988,
and I've tried gnu-emacs a few times but keep giving up because
I can't figure out how to do jove-like things in it yet.


1. If I make changes and want to exit without saving, in jove I do
ctrl-x ctrl-c
it asks: "modified buffers exist - exit anyway?", 
I say: "y<return>" and it lets me out.

But with emacs, it asks me first this other question, which requires the
opposite yes/no answer, which always screws me up:
"save file? y/n" 

And then, if I say N, emacs asks me ANOTHER
question, and it won't accept a simple y/n, so I have to type
"yes<return>"

Can I have it skip that first question, and also permit me a single letter 
response for the second?

2. What is the command to toggle line-wrap in the current buffer?
   I did an "apropos wrap" and found no commands that actually toggle 
line-wrap.

3. How do I toggle the display of line numbers? 
  I did an "apropos number", found a command called
   "line-number-mode" but it seems not to do anything. Why is that?

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

* Re: Migrating from Jove - help?
  2004-06-23 21:10 Migrating from Jove - help? Alan Ezust
@ 2004-06-23 21:40 ` gebser
  2004-06-23 22:14 ` Kevin Rodgers
  1 sibling, 0 replies; 4+ messages in thread
From: gebser @ 2004-06-23 21:40 UTC (permalink / raw)



I can answer the easy ones.

At 17:10 (UTC-0400) on Wed, 23 Jun 2004 Alan Ezust said:

= Using:GNU Emacs 21.3.1
= 
= ....
= 2. What is the command to toggle line-wrap in the current buffer?
=    I did an "apropos wrap" and found no commands that actually toggle 
= line-wrap.

M-x autofill RETURN



= 3. How do I toggle the display of line numbers? 
=   I did an "apropos number", found a command called
=    "line-number-mode" but it seems not to do anything. Why is that?

M-x line-number-mode RETURN

Each time you execute the above you'll see an "L xx" (where xx is the 
line number) (dis)appear from the bar above the minibuffer.  I guess you 
have to know where to look to see it.

hth,
ken

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

* Re: Migrating from Jove - help?
  2004-06-23 21:10 Migrating from Jove - help? Alan Ezust
  2004-06-23 21:40 ` gebser
@ 2004-06-23 22:14 ` Kevin Rodgers
  2004-06-23 23:17   ` Josh Howard
  1 sibling, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2004-06-23 22:14 UTC (permalink / raw)


Alan Ezust wrote:
 > Using:GNU Emacs 21.3.1
 >
 > I've been using jonathan's own version of emacs since 1988,
 > and I've tried gnu-emacs a few times but keep giving up because
 > I can't figure out how to do jove-like things in it yet.
 >
 > 1. If I make changes and want to exit without saving, in jove I do
 > ctrl-x ctrl-c
 > it asks: "modified buffers exist - exit anyway?",
 > I say: "y<return>" and it lets me out.
 >
 > But with emacs, it asks me first this other question, which requires the
 > opposite yes/no answer, which always screws me up:
 > "save file? y/n"
 >
 > And then, if I say N, emacs asks me ANOTHER
 > question, and it won't accept a simple y/n, so I have to type
 > "yes<return>"
 >
 > Can I have it skip that first question, and also permit me a single letter
 > response for the second?

No and no.  But you can shoot yourself in the foot like this:

(global-set-key "\C-x\C-c" 'kill-emacs)	; was save-buffer-kill-emacs

-- 
Kevin Rodgers

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

* Re: Migrating from Jove - help?
  2004-06-23 22:14 ` Kevin Rodgers
@ 2004-06-23 23:17   ` Josh Howard
  0 siblings, 0 replies; 4+ messages in thread
From: Josh Howard @ 2004-06-23 23:17 UTC (permalink / raw)


Kevin Rodgers <ihs_4664@yahoo.com> writes:

> Alan Ezust wrote:
>  > And then, if I say N, emacs asks me ANOTHER
>  > question, and it won't accept a simple y/n, so I have to type
>  > "yes<return>"
>  >
>  > Can I have it skip that first question, and also permit me a single letter
>  > response for the second?
>
> No and no.  But you can shoot yourself in the foot like this:

Isn't the answer to the second question yes?
(fset 'yes-or-no-p 'y-or-n-p) in your ~/.emacs ought to let you just
answer with a y instead of a yes or no.

-- 
Josh Howard <jrh@zeppelin.net>

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

end of thread, other threads:[~2004-06-23 23:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 21:10 Migrating from Jove - help? Alan Ezust
2004-06-23 21:40 ` gebser
2004-06-23 22:14 ` Kevin Rodgers
2004-06-23 23:17   ` Josh Howard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.