Fix Mouse Scrolling Issue and Improve Spacemacs Configuration
Fix Mouse Scrolling Issue and Improve Spacemacs Configuration

1. Put current dir(.) back to "counsel find file", it is useful for the
   situations that need select directory, e.g., searching some text in all files
   under some directory recursively.
2. Enhance the functions of key bindings "C-n", "C-p", "C-@" and "C-SPC", reach
   the goal that do the corresponding command after entering "evil-emacs-state",
   make the user experience become more smooth. "C-@" and "C-SPC" are the same
   key binding, the former is for terminal when the later is for GUI.
   Key binding functions only can accept functions without any arguments, so
   only macro which return an lambda function can be used if there are common
   code need to be extracted.
3. Fix the issue that mouse scrolling doesn't work when emacs is run in Mac OSX
   terminal. The root cause is that mwheel.el set "mouse-wheel-up-event" and
   "mouse-wheel-down-event" to "wheel-down" and "wheel-up" because of "ns-win"
   always in "features" of emacs no matter emacs is launched in GUI or terminal
   environment.
   In addition, the mouse wheel keys received from terminal is "mouse-4" and
   "mouse-5", received from GUI is "wheel-up" and "wheel-down". So change the
   values of "mouse-wheel-up-event" and "mouse-wheel-down-event" directly can't
   make emacs GUI and terminal clients work well at the same time when they
   connect to the same emacs daemon.
4. Set "mouse-wheel-scroll-amount" to 1, scrolling 1 line per mouse wheel spin
   step is more smooth.
5. Move settings maybe failed in some platform to the bottom of
   "dotspacemacs/user-config", in order to avoid affecting the executing of
   other settings.
6. Adjust the position of settings and add more comments.

Johnson9009/dotfiles,Johnson9009/dotfiles