Move wakatime-mode configuration to use-package

This commit is contained in:
Gergely Polonkai 2016-10-10 20:40:40 +02:00
parent 6938f57981
commit d380a48699

13
init.el
View File

@ -138,8 +138,7 @@
'(savehist-mode t) '(savehist-mode t)
'(sgml-basic-offset 4) '(sgml-basic-offset 4)
'(show-trailing-whitespace t) '(show-trailing-whitespace t)
'(tab-width 4) '(tab-width 4))
'(wakatime-cli-path "/usr/local/bin/wakatime")
;; Custom face settings ;; Custom face settings
(custom-set-faces (custom-set-faces
@ -398,6 +397,13 @@
(lambda () (lambda ()
(if (display-graphic-p) org-bullets-mode)))) (if (display-graphic-p) org-bullets-mode))))
;; Waka-waka
(use-package wakatime-mode
:init
(setq-default wakatime-cli-path "/usr/local/bin/wakatime")
:config
(global-wakatime-mode t))
(use-package ace-window (use-package ace-window
:bind :bind
(("M-p" . ace-window))) (("M-p" . ace-window)))
@ -416,9 +422,6 @@
;; Define aliases ;; Define aliases
(defalias 'yes-or-no-p 'y-or-n-p) (defalias 'yes-or-no-p 'y-or-n-p)
;; Waka-waka
(add-hook 'after-init-hook 'global-wakatime-mode)
;; `c-mode' settings ;; `c-mode' settings
(add-hook 'c-mode-hook (add-hook 'c-mode-hook
(lambda () (lambda ()