简体   繁体   中英

Less “active” emacs string highlighting?

The problem is when I type ' or " (in a number of modes including java, python, ruby, c) it somehow immediately wants to make-highlight the rest of the file after as a string. Would be so less annoying if it rather did nothing and waited for closing quote char. Could be ok for triple quotes in python but for ordinary?

Googling didn't help much since I'm having troubles with concise and distinctive formulation.

You can use AutoPairs in order to automatically add the second " when you type the first " (same thing for parentheses, braces, etc.).

The syntax highlighting will not be disturbed.

http://www.emacswiki.org/emacs/AutoPairs

Actually, Emacs does wait already. So you may simply want to adjust the time it waits, which is controlled by jit-lock-context-time .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM