diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-28 21:16:24 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-28 21:16:24 +0200 |
| commit | d133cdb3a12528a8f371766bb53074e26ff1c2bf (patch) | |
| tree | e05c2539aa89fd2ac64f2bb88c10b9e92ef53efb /emacs | |
| parent | 54713c3c4cc8b52a6d6479f4466f12ae9156722e (diff) | |
| download | dotfiles-d133cdb3a12528a8f371766bb53074e26ff1c2bf.tar.gz dotfiles-d133cdb3a12528a8f371766bb53074e26ff1c2bf.zip | |
emacs: added markdown mode
Also, ELisp code will also include warnings now.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 18 |
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 |
