add open-in-external-eidtor function.

bind this function to M-f12 to open current buffer in notepad++
editor. This can help others who do not know emacs.
bind f10 to magit-status, if already in magit-status pannel, exit it.
toggle-magit-status-panel can close all magit window