 
 (declare-function magit-restore-window-configuration 'magit-mode)
 ;; kill buffer when I quit from magit
-(setq magit-bury-buffer-function #'(lambda (_)
-                                     (magit-restore-window-configuration t))
+(setq magit-bury-buffer-function (lambda (_)
+                                   (magit-restore-window-configuration t))
       magit-commit-show-diff nil)
 (advice-add #'magit-status :after #'magit-status-init)
 (add-hook 'git-commit-mode-hook #'git-commit-evil-maybe-start-insert)

      )
(eval-after-load 'company '(add-to-list 'company-backends 'company-ghc))

(add-hook 'evil-insert-state-entry-hook #'(lambda () (global-company-mode 1)))
(add-hook 'evil-insert-state-exit-hook #'company-abort)


(declare-function yas-activate-extra-mode 'yasnippet)
(declare-function yas-abort-snippet 'yasnippet)
(setq yas-wrap-around-region t
      yas-triggers-in-field t
      )

;; use clipboard only explicitly
(setq select-enable-clipboard nil)

;; these variable should set before loading evil
(setq evil-search-module 'evil-search
      evil-want-C-i-jump nil
      evil-want-C-d-scroll nil)
(require 'evil)
(setq evil-cross-lines t ;at line egde
      evil-echo-state nil
