From d133cdb3a12528a8f371766bb53074e26ff1c2bf Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 28 Jun 2016 21:16:24 +0200 Subject: emacs: added markdown mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also, ELisp code will also include warnings now. Signed-off-by: Miquel Sabaté Solà --- emacs/init.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- cgit v1.2.3