Switch some hooks to using use-package's :hook feature

This commit is contained in:
Adam Goldsmith 2018-03-15 01:16:19 -04:00
parent b8f75be5fe
commit f2c88f5df8

View File

@ -127,8 +127,7 @@
(use-package semantic (use-package semantic
:defer :defer
:init :hook c-mode
(add-hook 'c-mode-hook 'semantic-mode)
:config :config
(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode global-semanticdb-minor-mode
@ -383,7 +382,7 @@
(use-package column-enforce-mode :ensure (use-package column-enforce-mode :ensure
:config :config
(add-hook 'prog-mode-hook 'column-enforce-mode)) :hook prog-mode)
(use-package show-marks :ensure (use-package show-marks :ensure
:config :config
@ -554,14 +553,13 @@
(use-package highlight-indent-guides (use-package highlight-indent-guides
:config :config
(add-hook 'prog-mode-hook 'highlight-indent-guides-mode)) :hook (prog-mode . highlight-indent-guides-mode))
(use-package helm-dash (use-package helm-dash
:config :config
(setq helm-dash-browser-func 'eww (setq helm-dash-browser-func 'eww
helm-dash-enable-debugging nil) helm-dash-enable-debugging nil)
(add-hook 'python-mode-hook :hook (python-mode . (lambda ()(setq-local helm-dash-docsets '("Python 3")))))
'(lambda ()(setq-local helm-dash-docsets '("Python 3")))))
(use-package pkgbuild-mode (use-package pkgbuild-mode
:config :config
@ -611,7 +609,7 @@
:config :config
(add-to-list 'company-backends 'company-tern) (add-to-list 'company-backends 'company-tern)
(setq company-tern-property-marker "") (setq company-tern-property-marker "")
(add-hook 'js2-mode-hook (lambda () (tern-mode t)))) :hook (js2-mode . tern-mode))
(use-package nm (use-package nm
:bind (:map nm-mode-map :bind (:map nm-mode-map