Emacs keyboard shortcuts for nxhtml?

Asked by ikaruga

I was looking for the emacs keyboard shortcuts for nxhtml in the documentation but could not find them.
Does it have keyboard shortcuts?
Would be a good idea to list them in an easy to find place...

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
lborgman (lennart-borgman) said :
#1

Hi ikaruga,

Yes, you are right. Keyboard shortcuts should be easy to find, but I think you may be looking for them in the wrong place. Where did you look for them?

You can find the keyboard shortcuts (or keybindings as they are called in Emacs) from within Emacs. That is part of Emacs "self documenting" system. Most of the time you can in Emacs use

  C-h b
or
  F1 b

to find the active key bindings. That will give you a long list with keybindings from first minor modes, the current major modes and global keybindings. They come in that order because that is the priority Emacs gives them.

For some major modes you can also see the major mode bindings in the major mode help. You can see that help with C-h m.

Revision history for this message
ikaruga (amscopub-mail) said :
#2

Thanks lborgman, that solved my question.

Revision history for this message
ikaruga (amscopub-mail) said :
#3

First off great program.

What I meant was in the spirit of this blog post:

http://xah-lee.livejournal.com/93332.html

Most "entry-level programmers" don't know how to find the keybindings. Adding them to the official docs would be a good idea.

Secondly, in the same spirit, most "entry-level programmers" bind M-tab to switch desktops in their window managers. I would consider rebinding that very important key to something else by default. (FYI, tabkey2-mode doesn't seem to play well with auto complete.)

Thirdly, this seems to be geared for working in a windows environment. When I logged into emacs in a console, the M-tab completion did not work in the console (unless I'm not doing it right.) It would a shame if this very useful mode didn't work in console mode.

Fourthly, is there a way to bind things like "insert an h1 header," "insert an img link", etc..? That's really the keybindings I was looking for...

Lastly, is there a mailing list or forum for nxhtml?

Revision history for this message
lborgman (lennart-borgman) said :
#4

Hi again ikaruga,

I can see your point about keybindings, but I wonder what the best solution would be. As you have probably seen I have put up introductory documentation on a web page, because I think that is how people find things today:

  http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html

Maybe something could be added to "The Quick Guide" there? However I believe it would be best to add information like that I gave you above rather than the keybindings themselves. That is because there are many keybindings. They are a bit different in each major mode and most minor modes also have their own keybindings. What do you think?

You can use C-return instead of M-tab. (And I believed M-C-i also worked, but it does not, at least not on windows.)

Can you please enter a bug report for the problem you have with tabkey2-mode?

  https://bugs.launchpad.net/nxhtml

I did not bind things like "insert an img link" etc because they are easy to do with the nxhtml-mode completion. You can hit C-return (or M-tab or TAB if you are using tabke2-mode) directly to get a menu with choices. Or, you can enter the text "<img" and then hit one of those keys. Is not that simple enough? It would be easy to add some keybindings, but it is more to remember ...

No, there is no mailing list currently. I thought that maybe these pages + emacs normal mailing list would be enough.

Revision history for this message
lborgman (lennart-borgman) said :
#5

I have added some information about keybindings to "The Quick Guide":

  http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html#qg

Revision history for this message
lborgman (lennart-borgman) said :
#6

I consider this solved with the changes I wrote about above.