Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a question about InputAutoReplacements.

SetOptions[$FrontEndSession,
    InputAutoReplacements -> {"spa" -> 
            RowBox[{"〚", "\[SelectionPlaceholder]", "〛"}] } ]

It works, but always adds in spacing automatically. How can I get it fixed? Thanks!

enter image description here

Xiang Li

share|improve this question
    
Hi @Xiang Li, welcome to Mathematica.SE! I added the image according to the link in your post. Also please have a look at how to format your post with markdown. Proper formatting will make your post more readable and attract more attention. Have a good time on this site! –  Silvia May 19 '13 at 0:03
1  
The trigger of this InputAutoReplacement is Space Key, otherwise how to type the word space? You can also try ESC Key or other None-DigitCharacter key when finish typing 'spa' –  HyperGroups May 19 '13 at 5:44
    
@HyperGroups Could you post an answer? :) –  Kuba Jan 18 at 0:40
    
I do a fast space+backspace, but I'd be happy to get an alternative one-key-only solution –  Rojo Jan 19 at 4:07
add comment

1 Answer

This is my little answer since Kuba recommend me post my comment as an answer.

The trigger of this InputAutoReplacement is Space Key, otherwise how can you type the word "space"?

You can also try ESC Key or other None-DigitCharacter keys when finishing typing "spa".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.