all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.