unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Quote Selection Do What I Mean (DWIM)
@ 2009-10-23 11:51 Nordlöw
  2009-10-23 12:27 ` Benjamin Andresen
  2009-10-23 14:19 ` Pascal J. Bourguignon
  0 siblings, 2 replies; 5+ messages in thread
From: Nordlöw @ 2009-10-23 11:51 UTC (permalink / raw)
  To: help-gnu-emacs

If transient-mark-mode is activate it would be nice to have some
clever major-mode-sensitive auto-insertion of single quotes and
backquotes.

in emacs-lisp-mode we want the following mappings
- ' => `symbol' in comment-syntax
- ' => 'symbol in code-syntax (no change
- " => "string" everywhere

Does emacs have a suitable before/after/replace hook related to self-
insert-command that can be used to realize this behaviour?

Suitable function name could be quote-dwim().

Has anybody already done this? Reflections...

Thanks in advance,
Nordlöw


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

end of thread, other threads:[~2009-10-23 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23 11:51 Quote Selection Do What I Mean (DWIM) Nordlöw
2009-10-23 12:27 ` Benjamin Andresen
2009-10-23 14:19 ` Pascal J. Bourguignon
2009-10-23 14:55   ` Nordlöw
2009-10-23 16:38     ` Pascal J. Bourguignon

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