diff --git a/modules/emacs.el b/modules/emacs.el index 5634ecb..bb5ec2d 100644 --- a/modules/emacs.el +++ b/modules/emacs.el @@ -31,6 +31,7 @@ highlight-parentheses ibuffer-vc iedit + impatient-mode pdf-tools perspective projectile @@ -519,6 +520,23 @@ ((mail-mode . auto-fill-mode) (mail-mode . (lambda () (setq fill-column 71))))) + ;; -------------------------------------------------------------------------- + ;; `impatient-mode' + ;; -------------------------------------------------------------------------- + + ;; To preview markdown, start an HTTP daemon `httpd-start' and enable + ;; `impatient-mode'. Then, in a browser, visit http://localhost:8080/imp. + (defun markdown-html (buffer) + (princ (with-current-buffer buffer + (format "Impatient Markdown %s " + (buffer-substring-no-properties (point-min) + (point-max)))) + (current-buffer))) + + (use-package impatient-mode + :hook ((markdown-mode . (lambda () (setq imp-user-filter + 'markdown-html))))) + ;; -------------------------------------------------------------------------- ;; `pdf-tools' - use instead of DocView. ;; -------------------------------------------------------------------------- diff --git a/modules/programming.el b/modules/programming.el index 6587e99..a9a96f3 100644 --- a/modules/programming.el +++ b/modules/programming.el @@ -299,11 +299,11 @@ (use-package lsp-mode :commands lsp :init - (setq lsp-diagnostic-package :flycheck - lsp-flycheck-live-reporting nil + (setq lsp-diagnostics-provider :flycheck lsp-signature-auto-activate t lsp-signature-doc-lines 1 - lsp-enable-indentation nil)) + lsp-enable-indentation nil + lsp-file-watch-threshold 10000)) (use-package lsp-ui :commands lsp-ui-mode