summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/general.el2
-rw-r--r--lisp/markdown.el2
-rw-r--r--lisp/web.el20
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."