 
 ;; org 自动换行
 (add-hook 'org-mode-hook
-          (lambda () (setq truncate-lines t)))
-
-;; 默认 120 列自动换行, 需要 M-x auto-fill-mode 模式下
-(setq fill-column 120)
+          (lambda ()
+            (toggle-truncate-lines 0)
+            (setupEvilOrg)))
 
 (when (featurep 'ns)
   (defun ns-raise-emacs ()

(defun setupEvilOrg ()
  "Setup TAB For Org mode in Evil."
  (define-key evil-normal-state-map (kbd "TAB") 'org-cycle))
(add-hook 'org-mode-hook 'setupEvilOrg)
(define-key evil-normal-state-map (kbd "j") 'evil-next-visual-line)
(define-key evil-normal-state-map (kbd "k") 'evil-previous-visual-line)
(define-key evil-normal-state-map (kbd "C-u") 'evil-scroll-up)


(setq ring-bell-function 'ignore)

;; 默认 80 列自动换行, 需要 M-x auto-fill-mode 模式下
(defun auto-fill ()
  "Set for auto fill Config."
  (setq-default auto-fill-function 'do-auto-fill)
  (setq-default fill-column 80)
  (setq-default comment-auto-fill-only-comments t))

(add-hook 'emacs-startup-hook
          (lambda ()
            (auto-fill)
            (evil-mode)
            (projectile-global-mode)
            (setf enable-local-variables nil)))
