Skip to content

Commit

Permalink
Eliminate compile warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Mar 28, 2016
1 parent 7b4c95a commit 23503f3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lisp/init-imenu.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
;;
;;; Code:

(eval-when-compile (require 'imenu-list))

;; Idomenu
(global-set-key (kbd "C-.") 'idomenu)

Expand All @@ -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))))

Expand Down
2 changes: 2 additions & 0 deletions lisp/init-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
;;
;;; Code:

(eval-when-compile (require 'org))

(setq org-todo-keywords '((type "TODO" "ONGOING" "DONE")))

(provide 'init-org)
Expand Down
3 changes: 2 additions & 1 deletion lisp/init-package.el
Original file line number Diff line number Diff line change
Expand Up @@ -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/"))
Expand Down Expand Up @@ -122,7 +124,6 @@
'benchmark-init
)

(eval-when-compile (require 'paradox))
(setq paradox-github-token t)

(provide 'init-package)
Expand Down
2 changes: 2 additions & 0 deletions lisp/init-projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lisp/init-term.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
;;
;;; Code:

(eval-when-compile (require 'multi-term))

;; Multi term
(defvar term-program shell-file-name)
(cond ((executable-find "fish")
Expand Down
1 change: 1 addition & 0 deletions lisp/init-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lisp/init-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23503f3

Please sign in to comment.