unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Three questions
@ 2004-09-11 21:35 William Payne
  2004-09-11 21:53 ` Drew Adams
  2004-09-12  0:09 ` John Paul Wallington
  0 siblings, 2 replies; 6+ messages in thread
From: William Payne @ 2004-09-11 21:35 UTC (permalink / raw)


Hello there, using a CVS version of Emacs (compiled some time in august) and 
I have three questions:

How do I set my Delete key to delete the currently selected region (and with 
selected I mean selected using the mouse)?

Second question: I have the following in my .emacs:
(setq auto-mode-alist
      (cons '("\\(\\`\\|/\\)Makefile\\'" . makefile-mode)
       auto-mode-alist))

My old varaint would trigger Makefile mode (think I just had Makefile$ or 
something similar), if the path contained the string "Makefile". That wasn't 
so good. This varaint triggers makefile mode only if the actual file name 
itself is called Makefile: that is good. However, I want it to trigger make 
file mode if the file name (not the path!) contains the string Makefile, so 
Makefile.in would trigger also. What do I need to change to get that?

Finally, can I pass a parameter to the configure script when compiling emacs 
from source to make it build without sound support?

/ WP 

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

* RE: Three questions
  2004-09-11 21:35 Three questions William Payne
@ 2004-09-11 21:53 ` Drew Adams
  2004-09-12  0:09 ` John Paul Wallington
  1 sibling, 0 replies; 6+ messages in thread
From: Drew Adams @ 2004-09-11 21:53 UTC (permalink / raw)


Well, for the DEL key (usually Backspace - not the same as Delete), use
Delete Selection mode:
http://www.emacswiki.org/cgi-bin/wiki/DeleteSelectionMode.

For the Delete key, you can always bind it to command kill-region.

-----Original Message----

How do I set my Delete key to delete the currently selected region (and with
selected I mean selected using the mouse)?

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

* Re: Three questions
  2004-09-11 21:35 Three questions William Payne
  2004-09-11 21:53 ` Drew Adams
@ 2004-09-12  0:09 ` John Paul Wallington
  2004-09-12 14:40   ` William Payne
  1 sibling, 1 reply; 6+ messages in thread
From: John Paul Wallington @ 2004-09-12  0:09 UTC (permalink / raw)


"William Payne" <mikas493_no_spam@student.liu.se> writes:

> How do I set my Delete key to delete the currently selected region (and with 
> selected I mean selected using the mouse)?

Turn on Delete Selection Mode; either M-x customize-variable
delete-selection-mode then set and save or put
(delete-selection-mode 1) in your .emacs file.

> Second question: I have the following in my .emacs:
> (setq auto-mode-alist
>       (cons '("\\(\\`\\|/\\)Makefile\\'" . makefile-mode)
>        auto-mode-alist))
>
> My old varaint would trigger Makefile mode (think I just had Makefile$ or 
> something similar), if the path contained the string "Makefile". That wasn't 
> so good. This varaint triggers makefile mode only if the actual file name 
> itself is called Makefile: that is good. However, I want it to trigger make >
> file mode if the file name (not the path!) contains the string Makefile, so 
> Makefile.in would trigger also. What do I need to change to get that?

If you remove the above snippet from your .emacs file then Emacs
should work as you expect by default.  Does it?

> Finally, can I pass a parameter to the configure script when compiling emacs 
> from source to make it build without sound support?

Try configure --without-sound

Generally, running configure with the --help option should
suggest options.

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

* Re: Three questions
  2004-09-12  0:09 ` John Paul Wallington
@ 2004-09-12 14:40   ` William Payne
  2004-09-17 23:06     ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: William Payne @ 2004-09-12 14:40 UTC (permalink / raw)



"John Paul Wallington" <jpw@gnu.org> wrote in message 
news:86mzzwz6so.fsf@vaio.shootybangbang.com...
> "William Payne" <mikas493_no_spam@student.liu.se> writes:
>
>> How do I set my Delete key to delete the currently selected region (and 
>> with
>> selected I mean selected using the mouse)?
>
> Turn on Delete Selection Mode; either M-x customize-variable
> delete-selection-mode then set and save or put
> (delete-selection-mode 1) in your .emacs file.
>
>> Second question: I have the following in my .emacs:
>> (setq auto-mode-alist
>>       (cons '("\\(\\`\\|/\\)Makefile\\'" . makefile-mode)
>>        auto-mode-alist))
>>
>> My old varaint would trigger Makefile mode (think I just had Makefile$ or
>> something similar), if the path contained the string "Makefile". That 
>> wasn't
>> so good. This varaint triggers makefile mode only if the actual file name
>> itself is called Makefile: that is good. However, I want it to trigger 
>> make >
>> file mode if the file name (not the path!) contains the string Makefile, 
>> so
>> Makefile.in would trigger also. What do I need to change to get that?
>
> If you remove the above snippet from your .emacs file then Emacs
> should work as you expect by default.  Does it?
>
>> Finally, can I pass a parameter to the configure script when compiling 
>> emacs
>> from source to make it build without sound support?
>
> Try configure --without-sound
>
> Generally, running configure with the --help option should
> suggest options.

Thanks Paul.
(delete-selection mode 1) works.
the --without-sound option doesn't appear when I run ./configure --help, but 
I will try it next time I build emacs.
And if I comment out the lines regarding makefile-mode, I don't get makefile 
mode for files named Makefile.txt for example, only if they are named 
Makefile.

/ WP 

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

* Re: Three questions
  2004-09-12 14:40   ` William Payne
@ 2004-09-17 23:06     ` Kevin Rodgers
  2004-09-17 23:27       ` William Payne
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2004-09-17 23:06 UTC (permalink / raw)


William Payne wrote:
 > "John Paul Wallington" <jpw@gnu.org> wrote in message
 > news:86mzzwz6so.fsf@vaio.shootybangbang.com...
 >>"William Payne" <mikas493_no_spam@student.liu.se> writes:
 >>>Second question: I have the following in my .emacs:
 >>>(setq auto-mode-alist
 >>>      (cons '("\\(\\`\\|/\\)Makefile\\'" . makefile-mode)
 >>>       auto-mode-alist))
 >>>
 >>>My old varaint would trigger Makefile mode (think I just had
 >>>Makefile$ or something similar), if the path contained the string
 >>>"Makefile". That wasn't so good. This varaint triggers makefile
 >>>mode only if the actual file name itself is called Makefile: that
 >>>is good. However, I want it to trigger make > file mode if the file
 >>>name (not the path!) contains the string Makefile, so Makefile.in
 >>>would trigger also. What do I need to change to get that?
 >>
 >>If you remove the above snippet from your .emacs file then Emacs
 >>should work as you expect by default.  Does it?
 >
 > And if I comment out the lines regarding makefile-mode, I don't get
 > makefile mode for files named Makefile.txt for example, only if they
 > are named Makefile.

To match an optional extension:

(setq auto-mode-alist
       (cons '("\\(\\`\\|/\\)Makefile\\(\\.[^.]*\\)?\\'" . makefile-mode)
        auto-mode-alist))

-- 
Kevin Rodgers

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

* Re: Three questions
  2004-09-17 23:06     ` Kevin Rodgers
@ 2004-09-17 23:27       ` William Payne
  0 siblings, 0 replies; 6+ messages in thread
From: William Payne @ 2004-09-17 23:27 UTC (permalink / raw)



"Kevin Rodgers" <ihs_4664@yahoo.com> wrote in message 
news:414B6DF3.8000002@yahoo.com...
> William Payne wrote:
> > "John Paul Wallington" <jpw@gnu.org> wrote in message
> > news:86mzzwz6so.fsf@vaio.shootybangbang.com...
> >>"William Payne" <mikas493_no_spam@student.liu.se> writes:
> >>>Second question: I have the following in my .emacs:
> >>>(setq auto-mode-alist
> >>>      (cons '("\\(\\`\\|/\\)Makefile\\'" . makefile-mode)
> >>>       auto-mode-alist))
> >>>
> >>>My old varaint would trigger Makefile mode (think I just had
> >>>Makefile$ or something similar), if the path contained the string
> >>>"Makefile". That wasn't so good. This varaint triggers makefile
> >>>mode only if the actual file name itself is called Makefile: that
> >>>is good. However, I want it to trigger make > file mode if the file
> >>>name (not the path!) contains the string Makefile, so Makefile.in
> >>>would trigger also. What do I need to change to get that?
> >>
> >>If you remove the above snippet from your .emacs file then Emacs
> >>should work as you expect by default.  Does it?
> >
> > And if I comment out the lines regarding makefile-mode, I don't get
> > makefile mode for files named Makefile.txt for example, only if they
> > are named Makefile.
>
> To match an optional extension:
>
> (setq auto-mode-alist
>       (cons '("\\(\\`\\|/\\)Makefile\\(\\.[^.]*\\)?\\'" . makefile-mode)
>        auto-mode-alist))
>
> -- 
> Kevin Rodgers
>

Thanks Kevin, that works!

/ WP 

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-11 21:35 Three questions William Payne
2004-09-11 21:53 ` Drew Adams
2004-09-12  0:09 ` John Paul Wallington
2004-09-12 14:40   ` William Payne
2004-09-17 23:06     ` Kevin Rodgers
2004-09-17 23:27       ` William Payne

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).