all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* transient-mark-mode broken in CVS and is there a better html-mode?
@ 2005-09-26 15:25 Shug Boabby
  2005-09-26 15:38 ` Shug Boabby
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Shug Boabby @ 2005-09-26 15:25 UTC (permalink / raw)


has anyone else noticed that 'transient-mark-mode' no longer highlights
selected areas in html-mode? seems ok in other modes, such as elisp and
text only.

i'm actually quite sick of the out of the box html-mode that comes with
Emacs... can anyone recommend a better one? one that will allow
indentation. optimally being able to detect javascript/php and change
accordingly (in the same document) but i remember trying to set that up
before and it never worked.

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-09-26 15:25 transient-mark-mode broken in CVS and is there a better html-mode? Shug Boabby
@ 2005-09-26 15:38 ` Shug Boabby
  2005-09-26 17:13 ` Edward O'Connor
  2005-10-04  2:57 ` Stefan Monnier
  2 siblings, 0 replies; 10+ messages in thread
From: Shug Boabby @ 2005-09-26 15:38 UTC (permalink / raw)


hmm, i think flyspell-mode may be causing this... disabling flyspell
things work again.

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-09-26 15:25 transient-mark-mode broken in CVS and is there a better html-mode? Shug Boabby
  2005-09-26 15:38 ` Shug Boabby
@ 2005-09-26 17:13 ` Edward O'Connor
  2005-10-04  2:57 ` Stefan Monnier
  2 siblings, 0 replies; 10+ messages in thread
From: Edward O'Connor @ 2005-09-26 17:13 UTC (permalink / raw)


> i'm actually quite sick of the out of the box html-mode that comes with
> Emacs... can anyone recommend a better one?

nxml-mode is really quite awesome.


Ted

-- 
Edward O'Connor
hober0@gmail.com

Ense petit placidam sub libertate quietem.

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-09-26 15:25 transient-mark-mode broken in CVS and is there a better html-mode? Shug Boabby
  2005-09-26 15:38 ` Shug Boabby
  2005-09-26 17:13 ` Edward O'Connor
@ 2005-10-04  2:57 ` Stefan Monnier
  2005-10-05 10:09   ` Shug Boabby
  2 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2005-10-04  2:57 UTC (permalink / raw)


> i'm actually quite sick of the out of the box html-mode that comes with
> Emacs... can anyone recommend a better one? one that will allow
> indentation. 

For XML, there's nxml, for HTML there's psgml.
But note that under Emacs-CVS (which you seem to be using) the builtin
html-mode does do indentation.  If the indentation doesn't work well for
you, please report it as a bug.


        Stefan

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-10-04  2:57 ` Stefan Monnier
@ 2005-10-05 10:09   ` Shug Boabby
  2005-10-05 15:49     ` Kevin Rodgers
                       ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Shug Boabby @ 2005-10-05 10:09 UTC (permalink / raw)


hmm, yeah latest CVS emacs is indeed much better at this (i was using a
slightly outdated one).

but i also like nXML mode. the problem is that no mater what i do to
auto-load-alist to set xml files to open in nxml-mode... they still
open in xml-mode. how can i override that?

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
@ 2005-10-05 11:13 LENNART BORGMAN
  0 siblings, 0 replies; 10+ messages in thread
From: LENNART BORGMAN @ 2005-10-05 11:13 UTC (permalink / raw)
  Cc: help-gnu-emacs

From: Shug Boabby <Shug.Boabby@gmail.com>
Date: Wednesday, October 5, 2005 12:09 pm
Subject: Re: transient-mark-mode broken in CVS and is there a better	html-mode?

> hmm, yeah latest CVS emacs is indeed much better at this (i was 
> using a
> slightly outdated one).
> 
> but i also like nXML mode. the problem is that no mater what i do to
> auto-load-alist to set xml files to open in nxml-mode... they still
> open in xml-mode. how can i override that?

Go to http://www.emacswiki.org/ and search for nxml for html. I have given an explanation of what to do there.

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-10-05 10:09   ` Shug Boabby
@ 2005-10-05 15:49     ` Kevin Rodgers
       [not found]     ` <mailman.9852.1128527766.20277.help-gnu-emacs@gnu.org>
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Kevin Rodgers @ 2005-10-05 15:49 UTC (permalink / raw)


Shug Boabby wrote:
 > but i also like nXML mode. the problem is that no mater what i do to
 > auto-load-alist to set xml files to open in nxml-mode... they still
 > open in xml-mode. how can i override that?

You don't say what you did, but the README file distributed with
nxml-mode says:

/--------
| To get things automatically loaded each time you start Emacs, add
|
|   (load "~/nxml-mode-200YMMDD/rng-auto.el")
|
| to your .emacs, where ~/nxml-mode-200YMMDD is the directory containing
| the .elc files.  Note that rng-auto.el does not load all of the
| nxml-mode code; it merely sets things up so that all the features of
| nxml-mode will be autoloaded properly.  You should not try to autoload
| rng-auto.el itself.
|
| To use nxml-mode automatically for files with an extension of xml,
| xsl, rng or xhtml, add
|
|   (setq auto-mode-alist
|         (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode)
| 	      auto-mode-alist))
|
| to your .emacs.
\--------

-- 
Kevin Rodgers

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
       [not found]     ` <mailman.9852.1128527766.20277.help-gnu-emacs@gnu.org>
@ 2005-10-05 16:30       ` Shug Boabby
  0 siblings, 0 replies; 10+ messages in thread
From: Shug Boabby @ 2005-10-05 16:30 UTC (permalink / raw)


hi kevin,

that doesn't work... you see, html-mode still overrides it. searching
for "nxml for html" on the emacs wiki
  http://www.emacswiki.org/cgi-bin/wiki/NxmlMode
i found that you need to add the line:
  (setq xml-based-modes (cons 'nxml-mode xml-based-modes))
to .emacs.

however, even with that, i get the warning on start-up:
 An error has occurred while loading `/Users/shug/.emacs':
 Symbol's value as variable is void: xml-based-modes
xml-mode is still used for XML files, html-mode still for xhtml files.

it is too much hassle getting nxml-mode set up, so i have decided to
return to using the standard html-mode, which seems to be getting
better.

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-10-05 10:09   ` Shug Boabby
  2005-10-05 15:49     ` Kevin Rodgers
       [not found]     ` <mailman.9852.1128527766.20277.help-gnu-emacs@gnu.org>
@ 2005-10-05 17:29     ` Edward O'Connor
  2005-10-05 18:03     ` Johan Bockgård
  3 siblings, 0 replies; 10+ messages in thread
From: Edward O'Connor @ 2005-10-05 17:29 UTC (permalink / raw)


Shug Boabby wrote:

> the problem is that no mater what i do to auto-load-alist to set xml
> files to open in nxml-mode... they still open in xml-mode. how can i
> override that?

Here's what I do to set up nxml mode:

(when (load "rng-auto" t)
  (defalias 'html-mode 'nxml-mode)
  (defalias 'xml-mode 'nxml-mode))


Ted

-- 
Edward O'Connor
hober0@gmail.com

Ense petit placidam sub libertate quietem.

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

* Re: transient-mark-mode broken in CVS and is there a better html-mode?
  2005-10-05 10:09   ` Shug Boabby
                       ` (2 preceding siblings ...)
  2005-10-05 17:29     ` Edward O'Connor
@ 2005-10-05 18:03     ` Johan Bockgård
  3 siblings, 0 replies; 10+ messages in thread
From: Johan Bockgård @ 2005-10-05 18:03 UTC (permalink / raw)


"Shug Boabby" <Shug.Boabby@gmail.com> writes:

> hmm, yeah latest CVS emacs is indeed much better at this (i was
> using a slightly outdated one).
>
> but i also like nXML mode. the problem is that no mater what i do to
> auto-load-alist to set xml files to open in nxml-mode

`auto-mode-alist' is overridden by `magic-mode-alist' (in CVS Emacs).

-- 
Johan Bockgård

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

end of thread, other threads:[~2005-10-05 18:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26 15:25 transient-mark-mode broken in CVS and is there a better html-mode? Shug Boabby
2005-09-26 15:38 ` Shug Boabby
2005-09-26 17:13 ` Edward O'Connor
2005-10-04  2:57 ` Stefan Monnier
2005-10-05 10:09   ` Shug Boabby
2005-10-05 15:49     ` Kevin Rodgers
     [not found]     ` <mailman.9852.1128527766.20277.help-gnu-emacs@gnu.org>
2005-10-05 16:30       ` Shug Boabby
2005-10-05 17:29     ` Edward O'Connor
2005-10-05 18:03     ` Johan Bockgård
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05 11:13 LENNART BORGMAN

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.