diff options
author | mattkae <mattkae@protonmail.com> | 2022-09-13 08:26:14 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-09-13 08:26:14 -0400 |
commit | 6153ff67815ec44cd6409b1e1257ead59476bb7d (patch) | |
tree | 3d6ad77c43051106b3213be013efef9ce3a8663a /lisp | |
parent | ba3e1638f5cf2fdd58273fe844afcd4a55cf54ca (diff) |
Some markdown, general, and typescrip tthings
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/general.el | 2 | ||||
-rw-r--r-- | lisp/markdown.el | 2 | ||||
-rw-r--r-- | lisp/web.el | 20 |
3 files changed, 22 insertions, 2 deletions
diff --git a/lisp/general.el b/lisp/general.el index dce56ed..9af73d0 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -58,7 +58,7 @@ ;; Tree (require 'neotree) -(global-set-key [f8] 'neotree-toggle) +(global-set-key (kbd "C-;") 'neotree-toggle) (setq neo-smart-open t) ;;(setq projectile-switch-project-action 'neotree-projectile-action) (setq neo-theme (if (display-graphic-p) 'icons 'arrow)) diff --git a/lisp/markdown.el b/lisp/markdown.el index 97e5b92..0523913 100644 --- a/lisp/markdown.el +++ b/lisp/markdown.el @@ -8,7 +8,7 @@ :mode (("README\\.md\\'" . gfm-mode) ("\\.md\\'" . markdown-mode) ("\\.markdown\\'" . markdown-mode)) - :init (setq markdown-command "multimarkdown")) + :init (setq markdown-command "pandoc")) (provide 'markdown) ;;; markdown.el ends here diff --git a/lisp/web.el b/lisp/web.el index cf78b7e..8a21a76 100644 --- a/lisp/web.el +++ b/lisp/web.el @@ -54,6 +54,26 @@ ) (add-hook 'js2-mode-hook 'keybind-setup) + +;; Typescript +(defun setup-ts-mode() + (interactive) + (company-mode t) + (company-quickhelp-mode t) +) + +(use-package typescript-mode + :init + (define-derived-mode typescript-tsx-mode typescript-mode "TSX") + (add-to-list 'auto-mode-alist `(,(rx ".tsx" eos) . typescript-tsx-mode)) + :config + :custom + (typescript-indent-level 2)) + + +(add-hook 'typescript-mode-hook #'setup-ts-mode) +(add-hook 'typescript-mode-hook 'eglot-ensure) + ;; Web goodies (autoload 'json-mode "json-mode" "Use the json-mode package to provide 'json-mode on-demand." |