diff --git a/lisp/init-imenu.el b/lisp/init-imenu.el index 3c7de6125..52957334c 100644 --- a/lisp/init-imenu.el +++ b/lisp/init-imenu.el @@ -32,6 +32,8 @@ ;; ;;; Code: +(eval-when-compile (require 'imenu-list)) + ;; Idomenu (global-set-key (kbd "C-.") 'idomenu) @@ -41,6 +43,7 @@ (setq imenu-list-focus-after-activation t) (add-hook 'imenu-list-minor-mode-hook '(lambda () + "Disable linum in imenu list." (when imenu-list-minor-mode (linum-mode -1)))) diff --git a/lisp/init-org.el b/lisp/init-org.el index 65eda9df4..c30e3362c 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -32,6 +32,8 @@ ;; ;;; Code: +(eval-when-compile (require 'org)) + (setq org-todo-keywords '((type "TODO" "ONGOING" "DONE"))) (provide 'init-org) diff --git a/lisp/init-package.el b/lisp/init-package.el index bd9f9d81e..a3baa6ac8 100644 --- a/lisp/init-package.el +++ b/lisp/init-package.el @@ -32,6 +32,8 @@ ;; ;;; Code: +(eval-when-compile (require 'paradox)) + (package-initialize) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) ;; (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/")) @@ -122,7 +124,6 @@ 'benchmark-init ) -(eval-when-compile (require 'paradox)) (setq paradox-github-token t) (provide 'init-package) diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el index 392180ed2..468bef62d 100644 --- a/lisp/init-projectile.el +++ b/lisp/init-projectile.el @@ -32,6 +32,8 @@ ;; ;;; Code: +(eval-when-compile (require 'projectile)) + (projectile-global-mode 1) (setq projectile-indexing-method 'alien) ;; (setq projectile-project-root-files-functions diff --git a/lisp/init-term.el b/lisp/init-term.el index 64ab918bd..b01bef237 100644 --- a/lisp/init-term.el +++ b/lisp/init-term.el @@ -32,6 +32,8 @@ ;; ;;; Code: +(eval-when-compile (require 'multi-term)) + ;; Multi term (defvar term-program shell-file-name) (cond ((executable-find "fish") diff --git a/lisp/init-utils.el b/lisp/init-utils.el index 9c9553337..a0535d1d0 100644 --- a/lisp/init-utils.el +++ b/lisp/init-utils.el @@ -63,6 +63,7 @@ (global-set-key [C-f12] 'neotree-toggle) (add-hook 'neotree-mode-hook '(lambda () + "Disable linum in neotree." (linum-mode -1))) ;; Revert buffer diff --git a/lisp/init-window.el b/lisp/init-window.el index 8f06535ff..701afce84 100644 --- a/lisp/init-window.el +++ b/lisp/init-window.el @@ -32,6 +32,8 @@ ;; ;;; Code: +(eval-when-compile (require 'zoom-window)) + ;; Switch window (global-set-key (kbd "C-x o") 'switch-window) (windmove-default-keybindings)