Some checks failed
/ Test config on 20 (push) Failing after 53s
Make the editor load faster by deferring as much as possible until later use. For example, LSP load is now deferred until first use and no longer blocking. Use only elixir-format from elixir-mode, for similar speed reasons. The rest of the package has been taken over by the treesitter version of the mode.
34 lines
1.2 KiB
EmacsLisp
34 lines
1.2 KiB
EmacsLisp
;;; markdown -- summary -*- lexical-binding: t; -*-
|
|
;;; Commentary:
|
|
;;; Code:
|
|
|
|
(require 'icejam-prog-mode)
|
|
|
|
;; Markdown is a dependency of LSP mode. By wrapping it in unless we silence
|
|
;; a warning from the byte compiler.
|
|
(declare-function elpaca-installed-p "elpaca")
|
|
(unless (elpaca-installed-p 'markdown-mode)
|
|
(use-package markdown-mode :ensure t :defer t))
|
|
|
|
(with-eval-after-load 'markdown-mode
|
|
(setq-default markdown-command "pandoc"))
|
|
|
|
(declare-function rxt--re-builder-switch-pcre-mode "pcre2el")
|
|
|
|
(defun icejam-lang-activate-markdown-mode ()
|
|
"Reconfigure markdown mode for your own purposes."
|
|
(icejam-set-indent 2)
|
|
(column-enforce-n 10000)
|
|
|
|
;; Markdown mode reuses my bindings, remove them.
|
|
(define-key markdown-mode-map (kbd "C-c <left>") nil)
|
|
(define-key markdown-mode-map (kbd "C-c <right>") nil)
|
|
(define-key markdown-mode-map (kbd "C-c <up>") nil)
|
|
(define-key markdown-mode-map (kbd "C-c <down>") nil)
|
|
(define-key markdown-mode-map (kbd "C-c C-v") 'markdown-preview))
|
|
|
|
(add-hook 'markdown-mode-hook 'icejam-lang-activate-markdown-mode)
|
|
(add-hook 'markdown-mode-hook 'display-line-numbers-mode)
|
|
|
|
(provide 'icejam-lang-markdown)
|
|
;;; icejam-lang-markdown.el ends here
|