 
 (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)

;; Put last selected bookmark on top
(setq bookmark-sort-flag nil)
(defvar bookmark-order-changed nil)
(advice-add #'bookmark-save :after
            #'(lambda () (setq bookmark-order-changed nil)))
(defun bookmark-put-last-use-on-top ()
  (let ((last (bookmark-get-bookmark bookmark-current-bookmark)))
    (setq bookmark-alist (delq last bookmark-alist))

;; 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
