Every once and a while Emacs fails at syntax highlighting and the coloring gets all funky in a buffer. Is there any way to force Emacs to "recolor" the syntax? Just try over? I don't mind if it takes a moment.
相关问题
- Symbol's function definition is void: declare-
- slurm: use a control node also for computing
- How can I set the SVN password with Emacs 23.1 bui
- Emacs shell: save commit message
- How to read a string array in appSettings.json?
相关文章
- ess-rdired: I get this error “no ESS process is as
- Emacs/xterm color annoyance on Linux
- How to use relative line numbering universally in
- Pipe less to Emacs
- Capturing the output of “diff” with org-babel
- On scala project - Getting error GC overhead limit
- emacs terminal mode: how to copy and paste efficie
- Debugging with Eclipse CDT and GDB: can't find
I once wrote the following simple function to reset the buffer to its natural mode, refontify it, bring the line where the cursor is to the center of the screen, disable the menu-bar, disable the tool-bar and move the scroll-bar left.
This can be very useful when the mode changes, Emacs suddenly displays the menubar or something else goes wrong. Then I just press
M-g g
to heal it.I didn't know about
M-o M-o
; it seems as if this could be a better key binding for this function.I think
M-x font-lock-fontify-buffer
will do what you are looking for. Or select a region and doM-o M-o
(orM-x font-lock-fontify-block
).