I use Ctrl - Alt - i to move the cursor to up window, actually I use ijkl to move cursor to different window in four directions.
When I enabled flyspell-mode, the Ctrl - Alt - i is overwritten. It was used to correct misspelled words, but I never use it.
Maybe you accumulated too many unstaged changes, maybe there are man different changes gathered in a same hunk. No you get a hunk contains totally different code, you may not want to stage them as a whole. If you are in command line, you can use git add -p. But this feature is very limited, you just can not .
One of the things I miss about VIM in Emacs is :%s command, which allows you input pattern and replace text in one step. The Emacs M-x query-replace-regexp do the same thing but a bit annoying, you need to input regular expression first then press enter, input replace text and press enter again and you need to press ! .
When you need to work in a dark environment, choose a eye healthy theme if important if you want to be happy stay with Emacs.
It has a dark background, but not black. The text fore colors like white, green, red works very well with the background.
I first know the so called distraction free mode is when I'm using Sublime Text, Press Shift + F11, and you go into Full screen mode , and the text is centered, each line contains 80 characters, I found this is very helpful when I focus on writing, for example when writing a blog post.
Goto Anything is a great feature in editors like Sublime Text, it allows you goto anywhere you want with minimal key strokes. This is what I wanted in Emacs for switching buffers. Both the switch-to-buffer and switch-to-buffer are not good enough.
The Sublime Goto Anything support goto any line any symbol in any file with fuzzy matching. For Emacs, if I can fuzzy matching buffers and switch to the buffer I will be more productive.The Sublime Goto Anything support goto any line any symbol in any file with fuzzy matching. For Emacs, if .
I noticed the indent line feature of php-mode in Emacs works not right. I just want the basic indentation, but php-mode is using something different, run command describe-function and input indent-line-function I get php-cautious-indent-line. This is not what I want according its behavior.
The basic indent-relative is enough for me. To change it, we should first remove the php-mode hook in ielm buffer, run the following codeThe basic indent-relative is enough for me. To change it, we should first remove the php-mode hook .