* Skeleton pair only working partialy in C++
@ 2008-05-02 16:33 TheLonelyStar
2008-05-02 20:10 ` David Hansen
0 siblings, 1 reply; 2+ messages in thread
From: TheLonelyStar @ 2008-05-02 16:33 UTC (permalink / raw)
To: Help-gnu-emacs
Hi,
I have enabled skeleton-pair funcionality with what I have found in here:
http://littlechina.org/~cmarcelo/paren-experiment.el
It works in most modes, but in C++ mode it only works for [ and not for (,{
or ".
So I wonder, maybe these keys are bound to some other functions?
Can I find out to which?
What do you think?
Thanks!
Nathan
--
View this message in context: http://www.nabble.com/Skeleton-pair-only-working-partialy-in-C%2B%2B-tp17023138p17023138.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Skeleton pair only working partialy in C++
2008-05-02 16:33 Skeleton pair only working partialy in C++ TheLonelyStar
@ 2008-05-02 20:10 ` David Hansen
0 siblings, 0 replies; 2+ messages in thread
From: David Hansen @ 2008-05-02 20:10 UTC (permalink / raw)
To: help-gnu-emacs
On Fri, 2 May 2008 09:33:11 -0700 (PDT) TheLonelyStar wrote:
> I have enabled skeleton-pair funcionality with what I have found in here:
> http://littlechina.org/~cmarcelo/paren-experiment.el
> It works in most modes, but in C++ mode it only works for [ and not for (,{
> or ".
Try:
(define-key c-mode-base-map (kbd "(") #'skeleton-pair-insert-maybe)
;; same for the other keys here...
or
(add-hook 'c-mode-common-hook
#'(lambda ()
(local-set-key (kbd "(") #'skeleton-pair-insert-maybe)
;; same for the other keys here...
))
If you don't like the way skeleton decides whether to insert a pair or
not but to insert a pair always use `insert-pair' instead of
`skeleton-pair-insert-maybe'.
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-02 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 16:33 Skeleton pair only working partialy in C++ TheLonelyStar
2008-05-02 20:10 ` David Hansen
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.