Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-26 Thread Tim Cross
Samuel Wales writes: > can either of you give examples of code or settings that you had that > made behavior of new modes unpredictable because emacs started > supporting the behavior you made the code or settings for? > It is difficult to remember now as it was some time ago that I cleaned

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-26 Thread Eric S Fraga
On Thursday, 25 Oct 2018 at 15:57, Samuel Wales wrote: > can either of you give examples of code or settings that you had that > made behavior of new modes unpredictable because emacs started > supporting the behavior you made the code or settings for? In my case, mostly incompatible bindings of

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-25 Thread Samuel Wales
oh i got that slightly wrong. i meant can you give exmaples of what yoa re saying.

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-25 Thread Samuel Wales
can either of you give examples of code or settings that you had that made behavior of new modes unpredictable because emacs started supporting the behavior you made the code or settings for? On 10/25/18, Eric S Fraga wrote: > On Thursday, 25 Oct 2018 at 08:24, Tim Cross wrote: >> Likewise,

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-25 Thread Eric S Fraga
On Thursday, 25 Oct 2018 at 08:24, Tim Cross wrote: > Likewise, started with Emacs 19 and I still have some code which I added > back then in my init! [...] > The two big benefits from the clean up have been much faster start up > (something which never really bothered me as I run emacs for

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Tim Cross
Eric S Fraga writes: > On Wednesday, 24 Oct 2018 at 12:38, Roland Everaert wrote: >> Pleased to see it was helpful. The funny thing is that I use that config >> for, maybe, 10 years and never think about changing it. > > I've been using emacs for well over 30 years now. You would not believe

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Eric S Fraga
On Wednesday, 24 Oct 2018 at 09:12, Matt Price wrote: > Eric, you seem to be replying to an email that I sometimes don't have -- I > would love to see what @stardiviner wrote, do you stil lhave the email? I've forwarded that email to you but it's strange that you missed it as it was sent to the

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Matt Price
Eric, you seem to be replying to an email that I sometimes don't have -- I would love to see what @stardiviner wrote, do you stil lhave the email? On Tue, Oct 23, 2018 at 9:12 AM Eric S Fraga wrote: > On Tuesday, 23 Oct 2018 at 19:48, stardiviner wrote: > > This is really helpful for me, I use

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Eric S Fraga
On Wednesday, 24 Oct 2018 at 12:38, Roland Everaert wrote: > Pleased to see it was helpful. The funny thing is that I use that config > for, maybe, 10 years and never think about changing it. I've been using emacs for well over 30 years now. You would not believe the crud that has built up in

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-24 Thread Roland Everaert
I will borrow your config for the emphasis symbols, but for all the paren-related symbols, I will keep the global mapping, so it will still work when writing codes and the like ;) Pleased to see it was helpful. The funny thing is that I use that config for, maybe, 10 years and never think about

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-23 Thread Eric S Fraga
On Tuesday, 23 Oct 2018 at 19:48, stardiviner wrote: > This is really helpful for me, I use smartparens before, but it is a > little heavy. So I disabled it. I found your solution is simple and > fast. I modified a little: +1 I gave up long ago on smartparens but skeleton seems to work well. --

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-23 Thread stardiviner
Roland Everaert writes: > Hi, > > I use the following configuration: > > parenthèses, accolades et brackets ;; > (setq skeleton-pair t) > (global-set-key "[" 'skeleton-pair-insert-maybe) > (global-set-key "{" 'skeleton-pair-insert-maybe) >

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-23 Thread Roland Everaert
Hi, I use the following configuration: parenthèses, accolades et brackets ;; (setq skeleton-pair t) (global-set-key "[" 'skeleton-pair-insert-maybe) (global-set-key "{" 'skeleton-pair-insert-maybe) (global-set-key "(" 'skeleton-pair-insert-maybe)

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-21 Thread Matt Price
wow, I learned a whole lot from your answer Nicholas, but still not quite enough to make this work for me. After some puzzling over the syntax for character values, I believe that what I want should be something like this: (add-function :before-until electric-pair-inhibit-predicate

Re: [O] electric-pair, autopair, smartparens, etc in org-mode

2018-10-21 Thread Nicolas Goaziou
Hello, Matt Price writes: > - electric-pair and autopair complete [[ immediately, and don't seem to > allow me to skip past the closing brackets, so if I try to type [[ > https://link.to.somewhere][link text]] I end up with > [[link.to.somewhere]][link-text] . I use C-c C-l to insert links