In cima al toolkit
https://launchpad.net/s-x-emacs-werkstatt/+download
i seguenti tasti/comandi vengono consegnati:
(global-set-key [(super \))] 'ar-parentized-atpt)
(global-set-key [(super \])] 'ar-bracketed-atpt)
(global-set-key [(super \})] 'ar-braced-atpt)
(global-set-key [(super \")] 'ar-doublequoted-atpt)
(global-set-key [(super \')] 'ar-singlequoted-atpt)
questo modo con un paio di caratteri noti come delimitatori costituiranno comandi.
ar-delimited-atpt
restituirà la stringa attorno al punto individuato dal delimitatore più vicino.
Un gruppo di comandi più potenti permette ri-utilizzando i tasti del genere
(global-set-key [(control c)(\")] 'ar-doublequote-or-copy-atpt)
(global-set-key [(control c)(\')] 'ar-singlequote-or-copy-atpt)
(global-set-key [(control c)(<)] 'ar-lesser-angle-or-copy-atpt)
(global-set-key [(control c)(>)] 'ar-greater-angle-or-copy-atpt)
Ecco un doctring dato come esempio:
ar-doublequote-or-copy-atpt is an interactive Lisp function in
`thing-at-point-utils.el'.
It is bound to C-c ".
(ar-doublequote-or-copy-atpt &optional NO-DELIMITERS)
If region is highlighted, provide THING at point with doublequote(s),
otherwise copy doublequote(ed) at point.
With C-u, copy doublequote(ed) without delimiters.
With negative argument kill doublequote(ed) at point.
fonte
2014-06-07 11:28:01
Strettamente correlato: [Come contrassegnare il testo tra parentesi in Emacs?] (Http://stackoverflow.com/q/5194417/1199226) – itsjeyd