General refactor for consistency & idempotency

Also updated comments
This commit is contained in:
Henrik Lissner 2018-05-18 01:21:09 +02:00
parent 50401f6c09
commit 80adb9c1f6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
17 changed files with 48 additions and 40 deletions

View file

@ -15,10 +15,11 @@
markdown-hide-urls nil) ; trigger with `markdown-toggle-url-hiding'
:config
(defun +markdown|set-fill-column-and-line-spacing ()
(setq-local line-spacing 2)
(setq-local fill-column 80))
(add-hook 'markdown-mode-hook #'+markdown|set-fill-column-and-line-spacing)
(add-hook 'markdown-mode-hook #'auto-fill-mode)
(setq-hook! 'markdown-mode-hook
line-spacing 2
fill-column 80)
(map! (:map markdown-mode-map
[remap find-file-at-point] #'markdown-follow-thing-at-point