aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 5f98d28..2624b8a 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -316,6 +316,7 @@
;; Emacs Lisp mode
(add-hook 'emacs-lisp-mode-hook 'eldoc-mode)
+(add-hook 'emacs-lisp-mode-hook 'warnings-mode-hook)
;; C-common (it includes languages with a similar syntax of C).
(add-hook 'c-mode-common-hook 'warnings-mode-hook)
@@ -379,4 +380,21 @@
(c-indent-region . c-basic-offset)))
(smart-tabs-insinuate 'c 'c++ 'golang))
+;; Markdown mode with preview mode in the browser.
+(use-package markdown-mode
+ :ensure t
+ :config
+
+ ; This is the one that I got from openSUSE.
+ (custom-set-variables
+ '(markdown-command "/usr/bin/markdown-calibre"))
+
+ ; Preview mode does its things through websockets, so it's a requirement.
+ ; After that, we can safely require it.
+ (use-package websocket
+ :ensure t
+ :config
+ (use-package markdown-preview-mode
+ :ensure t)))
+
;;; init.el ends here