Replace add-hook! with setq-hook! where possible
This commit is contained in:
parent
fe2ed9b6f7
commit
168cb74794
3 changed files with 6 additions and 6 deletions
|
@ -15,10 +15,10 @@
|
||||||
markdown-hide-urls nil) ; trigger with `markdown-toggle-url-hiding'
|
markdown-hide-urls nil) ; trigger with `markdown-toggle-url-hiding'
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(add-hook! markdown-mode
|
(add-hook 'markdown-mode-hook #'auto-fill-mode)
|
||||||
(auto-fill-mode +1)
|
(setq-hook! 'markdown-mode-hook
|
||||||
(setq line-spacing 2
|
line-spacing 2
|
||||||
fill-column 80))
|
fill-column 80)
|
||||||
|
|
||||||
(map! (:map markdown-mode-map
|
(map! (:map markdown-mode-map
|
||||||
[remap find-file-at-point] #'markdown-follow-thing-at-point
|
[remap find-file-at-point] #'markdown-follow-thing-at-point
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
;; default is 10; this optimizes `smartparens' performance, but limits sp
|
;; default is 10; this optimizes `smartparens' performance, but limits sp
|
||||||
;; pairs to 6 characters.
|
;; pairs to 6 characters.
|
||||||
(add-hook! php-mode (setq-local sp-max-pair-length 6))
|
(setq-hook! 'php-mode-hook sp-max-pair-length 6)
|
||||||
|
|
||||||
(sp-with-modes '(php-mode)
|
(sp-with-modes '(php-mode)
|
||||||
(sp-local-pair "/* " "*/" :post-handlers '(("||\n[i] " "RET") ("| " "SPC")))
|
(sp-local-pair "/* " "*/" :post-handlers '(("||\n[i] " "RET") ("| " "SPC")))
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#'(yas-minor-mode-on flycheck-mode highlight-numbers-mode))
|
#'(yas-minor-mode-on flycheck-mode highlight-numbers-mode))
|
||||||
|
|
||||||
;; An improved newline+continue comment function
|
;; An improved newline+continue comment function
|
||||||
(add-hook! css-mode (setq-local comment-indent-function #'+css/comment-indent-new-line))
|
(setq-hook! css-mode comment-indent-function #'+css/comment-indent-new-line)
|
||||||
|
|
||||||
(after! smartparens
|
(after! smartparens
|
||||||
(sp-with-modes '(css-mode scss-mode less-css-mode stylus-mode)
|
(sp-with-modes '(css-mode scss-mode less-css-mode stylus-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue