LaTeX closing $ signs makes cursor jump
I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?
latex
New contributor
add a comment |
I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?
latex
New contributor
add a comment |
I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?
latex
New contributor
I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?
latex
latex
New contributor
New contributor
New contributor
asked 4 hours ago
user1766555user1766555
1133
1133
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar
among other things the following happens if you input the closing $ sign:
Show matching dollar sign if this dollar sign ends
the TeX math mode and ‘blink-matching-paren’ is non-nil.
What you can do is to set blink-matching-paren
to nil
.
EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode
to still highlight the opening parenthesis.
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
1
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( ifblink-matching-paren
is set tot
. But if you don't like this behaviour anyway then this should be fine.
– andrej
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?blink-matching-paren
is set tot
– user1766555
2 hours ago
1
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) theshow-paren-mode
activated. Without that andblink-matching-paren
set tonil
there is no highlighting on my system.
– andrej
2 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "583"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
user1766555 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f48793%2flatex-closing-signs-makes-cursor-jump%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar
among other things the following happens if you input the closing $ sign:
Show matching dollar sign if this dollar sign ends
the TeX math mode and ‘blink-matching-paren’ is non-nil.
What you can do is to set blink-matching-paren
to nil
.
EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode
to still highlight the opening parenthesis.
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
1
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( ifblink-matching-paren
is set tot
. But if you don't like this behaviour anyway then this should be fine.
– andrej
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?blink-matching-paren
is set tot
– user1766555
2 hours ago
1
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) theshow-paren-mode
activated. Without that andblink-matching-paren
set tonil
there is no highlighting on my system.
– andrej
2 hours ago
add a comment |
I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar
among other things the following happens if you input the closing $ sign:
Show matching dollar sign if this dollar sign ends
the TeX math mode and ‘blink-matching-paren’ is non-nil.
What you can do is to set blink-matching-paren
to nil
.
EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode
to still highlight the opening parenthesis.
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
1
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( ifblink-matching-paren
is set tot
. But if you don't like this behaviour anyway then this should be fine.
– andrej
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?blink-matching-paren
is set tot
– user1766555
2 hours ago
1
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) theshow-paren-mode
activated. Without that andblink-matching-paren
set tonil
there is no highlighting on my system.
– andrej
2 hours ago
add a comment |
I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar
among other things the following happens if you input the closing $ sign:
Show matching dollar sign if this dollar sign ends
the TeX math mode and ‘blink-matching-paren’ is non-nil.
What you can do is to set blink-matching-paren
to nil
.
EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode
to still highlight the opening parenthesis.
I assume that you are using AUCTeX. According to the documentation of TeX-insert-dollar
among other things the following happens if you input the closing $ sign:
Show matching dollar sign if this dollar sign ends
the TeX math mode and ‘blink-matching-paren’ is non-nil.
What you can do is to set blink-matching-paren
to nil
.
EDIT: This will also affect the behaviour of emacs when you input a closing parenthesis etc., but you can use other modes e.g. show-paren-mode
to still highlight the opening parenthesis.
edited 2 hours ago
answered 3 hours ago
andrejandrej
716412
716412
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
1
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( ifblink-matching-paren
is set tot
. But if you don't like this behaviour anyway then this should be fine.
– andrej
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?blink-matching-paren
is set tot
– user1766555
2 hours ago
1
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) theshow-paren-mode
activated. Without that andblink-matching-paren
set tonil
there is no highlighting on my system.
– andrej
2 hours ago
add a comment |
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
1
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( ifblink-matching-paren
is set tot
. But if you don't like this behaviour anyway then this should be fine.
– andrej
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?blink-matching-paren
is set tot
– user1766555
2 hours ago
1
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) theshow-paren-mode
activated. Without that andblink-matching-paren
set tonil
there is no highlighting on my system.
– andrej
2 hours ago
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
Yes, I'm using AUCTeX. What is supposed to happen for closing parenthesis? I don't think I see anything happen.
– user1766555
2 hours ago
1
1
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if
blink-matching-paren
is set to t
. But if you don't like this behaviour anyway then this should be fine.– andrej
2 hours ago
For parentesis I see the same behaviour that you describe for $, i.e. from ) the cursor jumps to ( if
blink-matching-paren
is set to t
. But if you don't like this behaviour anyway then this should be fine.– andrej
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?
blink-matching-paren
is set to t
– user1766555
2 hours ago
I see the first parenthesis gets highlighted when closing, but it doesn't make my cursor jump back and fourth like with $. Is it because I am using emacs evil mode?
blink-matching-paren
is set to t
– user1766555
2 hours ago
1
1
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the
show-paren-mode
activated. Without that and blink-matching-paren
set to nil
there is no highlighting on my system.– andrej
2 hours ago
You are right! There is no jumping of the cursor but only highlighting. Maybe you have (as do I) the
show-paren-mode
activated. Without that and blink-matching-paren
set to nil
there is no highlighting on my system.– andrej
2 hours ago
add a comment |
user1766555 is a new contributor. Be nice, and check out our Code of Conduct.
user1766555 is a new contributor. Be nice, and check out our Code of Conduct.
user1766555 is a new contributor. Be nice, and check out our Code of Conduct.
user1766555 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Emacs Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f48793%2flatex-closing-signs-makes-cursor-jump%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown